GHSA-rfhr-62xp-2fp2

Suggest an improvement
Source
https://github.com/advisories/GHSA-rfhr-62xp-2fp2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-rfhr-62xp-2fp2/GHSA-rfhr-62xp-2fp2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rfhr-62xp-2fp2
Aliases
Published
2021-06-08T23:19:21Z
Modified
2025-01-14T08:57:09.541763Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-601"
    ],
    "severity": "MODERATE",
    "github_reviewed_at": "2021-05-27T22:38:20Z",
    "nvd_published_at": "2021-05-24T19:15:00Z"
}
References

Affected packages

npm / trailing-slash

Package

Affected ranges

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