{"id":"CVE-2022-25839","aliases":["GHSA-rf54-44jr-q5vf","SNYK-JS-URLJS-2414030"],"url":"https://o3.security/vulnerability/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.","published":"2022-03-11T20:00:15.762Z","modified":"2026-08-12T03:51:47.472880650Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"url-js","fixedVersion":"2.1.0"}],"fix":{"url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0","label":"duzun/URL.js@9dc9fcc"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:47.472880650Z"}}