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

EcosystemPackageFixed inAdvisory
npmurl-js2.1.0GHSA-rf54-44jr-q5vf

Affected products (as reported)

VendorProductVersions
n/a url-js unspecified – before 2.1.0

References