Live threats

All CVEs / Url-js Project

CVE-2022-25839Url-js Project Url-js

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Mar 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Url-js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm url-js < 2.1.0 2.1.0 npm install url-js@2.1.0

Per OSV / GitHub Advisories (GHSA-rf54-44jr-q5vf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
url-js_projecturl-js< 2.1.0

Official sources

References

Links published by the sources. Open them with care.