GHSA-rf54-44jr-q5vf

    Dashboard / Vulnerabilities / GHSA-rf54-44jr-q5vf

    GHSA-rf54-44jr-q5vf

    Published: 12 Mar 2022Last Modified: 8 Jul 2026

    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.

    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