What’s Vulnerable › Vulnerabilities
GHSA-gf8q-jrpm-jvxq: URL parsing in node-forge could lead to undesired behavior.
- Severity: low (CVSS 3.0)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2022-01-08 · updated 2022-01-07
- Weakness: CWE-601
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 - https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae/ ### For more information If you have any questions or comments about this advisory: * Open an issue in [forge](https://github.com/digitalbazaar/forge) * Email us at support@digitalbazaar.com
Affected products
- Npm Node-Forge: before 1.0.0 — fixed in 1.0.0
How to fix
Upgrade to a fixed version: Npm Node-Forge 1.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-gf8q-jrpm-jvxq
- https://nvd.nist.gov/vuln/detail/CVE-2022-0122
- https://github.com/digitalbazaar/forge
- https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae
Get alerted when GHSA-gf8q-jrpm-jvxq or the next vulnerability affects your stack