Vulnerability · Published Mar 11, 2022 · Assigned by snyk
CVE-2022-25839Improper Input Validation
Medium 4.3
In plain English
A medium-severity security flaw in url-js. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.8%top 41.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | url-js | 2.1.0 | GHSA-rf54-44jr-q5vf |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-URLJS-2414030 x_refsource_MISC
- https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0 x_refsource_MISC