Advisory

GHSA-rf54-44jr-q5vf

Also known as: CVE-2022-25839, SNYK-JS-URLJS-2414030

Summary

Improper Input Validation in url-js

Details

The package url-js before 2.1.0 is 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-03-12 00:00 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

url-js

npm · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences