Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJmaHItNjJ4cC0yZnAy
Open Redirect in trailing-slash
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.
Permalink: https://github.com/advisories/GHSA-rfhr-62xp-2fp2JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXJmaHItNjJ4cC0yZnAy
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 3 years ago
Updated: over 1 year ago
CVSS Score: 5.4
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Identifiers: GHSA-rfhr-62xp-2fp2, CVE-2021-23387
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23387
- https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048
- https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36
- https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707
- https://github.com/advisories/GHSA-rfhr-62xp-2fp2
Blast Radius: 3.3
Affected Packages
npm:trailing-slash
Dependent packages: 0Dependent repositories: 4
Downloads: 1,348 last month
Affected Version Ranges: < 2.0.1
Fixed in: 2.0.1
All affected versions: 0.0.0, 1.0.0, 2.0.0
All unaffected versions: 2.0.1, 2.0.2