{"id":"GHSA-gf8q-jrpm-jvxq","summary":"URL parsing in node-forge could lead to undesired behavior.","details":"### Impact\nThe 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.\n\n### Patches\n`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.\n\n### Workarounds\nEnsure code does not directly or indirectly call `forge.util.parseUrl` with untrusted input.\n\n### References\n- https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [forge](https://github.com/digitalbazaar/forge)\n* Email us at support@digitalbazaar.com\n","modified":"2022-01-07T22:20:43Z","published":"2022-01-08T00:22:02Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2022-01-07T22:20:43Z","nvd_published_at":null,"cwe_ids":["CWE-601"]},"references":[{"type":"WEB","url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-gf8q-jrpm-jvxq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0122"},{"type":"WEB","url":"https://github.com/digitalbazaar/forge"},{"type":"WEB","url":"https://www.huntr.dev/bounties/41852c50-3c6d-4703-8c55-4db27164a4ae"}],"affected":[{"package":{"name":"node-forge","ecosystem":"npm","purl":"pkg:npm/node-forge"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-gf8q-jrpm-jvxq/GHSA-gf8q-jrpm-jvxq.json"}}],"schema_version":"1.9.0"}