{"id":"CVE-2022-25839","summary":"Improper Input Validation","details":"The package url-js before 2.1.0 are vulnerable to Improper Input Validation due to improper parsing, which makes it is possible for the hostname to be spoofed. http://\\\\\\\\\\\\\\\\localhost and http://localhost are the same URL. However, the hostname is not parsed as localhost, and the backslash is reflected as it is.","aliases":["GHSA-rf54-44jr-q5vf","SNYK-JS-URLJS-2414030"],"modified":"2026-08-12T03:51:47.472880650Z","published":"2022-03-11T20:00:15.762Z","database_specific":{"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25839.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25839.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25839"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-URLJS-2414030"},{"type":"FIX","url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/duzun/url.js","events":[{"introduced":"0"},{"fixed":"432c3972d0f522969c8432433c363f2daacfd7de"},{"fixed":"9dc9fcc99baa4cbda24403d81a589e9b0f4121d0"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.1.0"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:*"}}],"versions":["v2.0.0","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.1","v0.1.0","v0.0.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25839.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P"}]}