CVE-2022-25839
MEDIUMurl-js < 2.1.0 - Hostname Spoofing via Improper Input Validation
Title source: llmDescription
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.
References (2)
Core 2
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-URLJS-2414030
Patch, Third Party Advisory x_refsource_misc
https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0
Scores
CVSS v3
4.3
EPSS
0.0021
EPSS Percentile
42.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Details
CWE
CWE-20
Status
published
Products (2)
npm/url-js
0 - 2.1.0npm
url-js_project/url-js
< 2.1.0
Published
Mar 11, 2022
Tracked Since
Feb 18, 2026