GHSA-gf8q-jrpm-jvxq
JSON

low

URL parsing in node-forge could lead to undesired behavior.

Severity
low rating by GitHub
Published
Last changed

Description

Impact

The regex used for the forge.util.parseUrl API would not properly parse certain inputs resulting in a parsed data structure that could lead to undesired behavior.

Patches

forge.util.parseUrl and other very old related URL APIs were removed in 1.0.0 in favor of letting applications use the more modern WHATWG URL Standard API.

Workarounds

Ensure code does not directly or indirectly call forge.util.parseUrl with untrusted input.

References
For more information

If you have any questions or comments about this advisory:

Affected

Product or packageVersionsReported by
node-forge (npm)before 1.0.0GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-gf8q-jrpm-jvxq changed 2022-01-07CC-BY-4.0