GHSA-gf8q-jrpm-jvxq json
URL parsing in node-forge could lead to undesired behavior.
published 4y ago modified 4y ago
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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
Patch / fix
- npm node-forge 1.0.0
Is GHSA-gf8q-jrpm-jvxq in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | node-forge | <1.0.0 |
1.0.0 |
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
Sources
- GitHub Advisory GHSA-gf8q-jrpm-jvxq
- Maintainer advisory GHSA-gf8q-jrpm-jvxq
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of digitalbazaar/forge published their own advisory on GitHub. Reviewed sources take precedence over it.