{"id":"GHSA-rf54-44jr-q5vf","summary":"Improper Input Validation in url-js","details":"The package url-js before 2.1.0 is 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":["CVE-2022-25839","SNYK-JS-URLJS-2414030"],"modified":"2026-05-01T04:12:08.686151617Z","published":"2022-03-12T00:00:26Z","database_specific":{"nvd_published_at":"2022-03-11T20:15:00Z","cwe_ids":["CWE-20"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-03-14T23:28:46Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25839"},{"type":"WEB","url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0"},{"type":"PACKAGE","url":"https://github.com/duzun/URL.js"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-URLJS-2414030"}],"affected":[{"package":{"name":"url-js","ecosystem":"npm","purl":"pkg:npm/url-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-rf54-44jr-q5vf/GHSA-rf54-44jr-q5vf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}