# GHSA-gf8q-jrpm-jvxq: URL parsing in node-forge could lead to undesired behavior.

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-08T00:22:02.000Z
- Modified: 2022-01-07T22:20:43.000Z
- Weaknesses: 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

(As written by GitHub Advisory Database.)

## Affected

- node-forge (npm): before 1.0.0

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-gf8q-jrpm-jvxq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0122> (advisory)
- <https://github.com/digitalbazaar/forge> (web)
- <https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae> (web)

## Sources

- GitHub Advisory Database: [GHSA-gf8q-jrpm-jvxq](https://github.com/advisories/GHSA-gf8q-jrpm-jvxq), CC-BY-4.0, modified 2022-01-07

---

Page: https://cve.day/GHSA-gf8q-jrpm-jvxq · Whole record: https://cve.day/GHSA-gf8q-jrpm-jvxq.json · Rebuilt by cve.day 2026-11-25T22:56:45.428Z
