GHSA-rf54-44jr-q5vf
Dashboard / Vulnerabilities / GHSA-rf54-44jr-q5vf
GHSA-rf54-44jr-q5vf
Published: 12 Mar 2022Last Modified: 8 Jul 2026
Aliases:
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.
References: https://nvd.nist.gov/vuln/detail/CVE-2022-25839, https://github.com/duzun/URL.js/commit/9dc9fcc99baa4cbda24403d81a589e9b0f4121d0, https://github.com/duzun/URL.js, https://snyk.io/vuln/SNYK-JS-URLJS-2414030
Affected packages
Package
Name: url-js
Purl: pkg:npm/url-js
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -2.1.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
