{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-25839","published":"2022-03-11T20:15:09.100000Z","last_modified":"2026-06-17T04:34:22.190000Z","status":"Modified","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:url-js_project:url-js:*:*:*:*:*:node.js:*:*","part":"a","vendor":"url-js_project","product":"url-js","version_end_excluding":"2.1.0"}],"cpes_truncated":false,"vendors":["url-js_project"],"products":["url-js_project/url-js"],"epss":{"score":0.00779,"percentile":0.52429,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rf54-44jr-q5vf","ecosystem":"npm","name":"url-js","purl":"pkg:npm/url-js","ranges":[{"introduced":"0","fixed":"2.1.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-25839/","html_en":"/en/cve/CVE-2022-25839/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25839","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25839"},"untrusted":{"vendor_name":"Url-js Project","product_name":"Url-js","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-URLJS-2414030","tags":["Exploit","Patch","Third Party Advisory"]}]}}