GHSA-rfhr-62xp-2fp2

    Dashboard / Vulnerabilities / GHSA-rfhr-62xp-2fp2

    GHSA-rfhr-62xp-2fp2

    Published: 8 Jun 2021Last Modified: 8 Jul 2026

    Summary: Open Redirect in trailing-slash

    Details: The package trailing-slash before 2.0.1 are vulnerable to Open Redirect via the use of trailing double slashes in the URL when accessing the vulnerable endpoint (such as https://example.com//attacker.example/). The vulnerable code is in index.js::createTrailing(), as the web server uses relative URLs instead of absolute URLs.

    Affected packages

    Package

    Name: trailing-slash

    Purl: pkg:npm/trailing-slash

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.0.1

    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
    GHSA-rfhr-62xp-2fp2 | CVE-DB