{"id":"CVE-2022-25839","published":"2022-03-11T20:00:15Z","modified":"2024-09-16T22:35:35Z","title":"Improper Input Validation","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00849,"percentile":0.59031,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-URLJS-2414030","tags":["x_refsource_MISC"]},{"url":"https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":11.81},{"name":"CVSS severity","points":3.01}]},"affectedVersions":[{"vendor":"n/a","product":"url-js","versions":[">= unspecified, < 2.1.0"]}],"affected":[{"ecosystem":"npm","package":"url-js","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-rf54-44jr-q5vf"],"provenance":"source"}],"summary":{"text":"The url-js package before version 2.1.0 contains an improper input validation flaw in its URL parsing logic, where a hostname can be spoofed because backslash sequences are not parsed correctly and are reflected unchanged. An attacker with low privileges and network access can exploit this without user interaction, causing a URL such as one using repeated backslashes before \"localhost\" to be treated as a different host than the one it actually resolves to.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:10Z"},"euvd":{"id":"EUVD-2022-1531","exploited":false,"provenance":"source"}}