GHSA-rf54-44jr-q5vf

Suggest an improvement
Source
https://github.com/advisories/GHSA-rf54-44jr-q5vf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-rf54-44jr-q5vf/GHSA-rf54-44jr-q5vf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-rf54-44jr-q5vf
Aliases
Published
2022-03-12T00:00:26Z
Modified
2025-01-08T14:12:00.907387Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-03-11T20:15:00Z",
    "github_reviewed_at": "2022-03-14T23:28:46Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-20"
    ]
}
References

Affected packages

npm / url-js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0