Open redirect in trailing-slash
Priority LOW 30CWE-601Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-601.
Summary
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.
Why it matters now
EPSS 0.0115 67th percentileScored 2026-11-07
Fix Fixed trailing-slash: 2.0.1trailing-slash (npm): 2.0.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | trailing-slash | before 2.0.1 | 2.0.1 | Patch available | CNA |
| — | trailing-slash (npm) | before 2.0.1 | 2.0.1 | Patch available | GHSA-rfhr-62xp-2fp2 |
- trailing-slash Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available CNA
- trailing-slash (npm) Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available GHSA-rfhr-62xp-2fp2
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:* | before 2.0.1 | Vulnerable | Trailing-slash Project |
- cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:* Versions before 2.0.1 Vulnerable ·Trailing-slash Project
Remediation
- Fix · CNA trailing-slash Fixed in 2.0.1
- Fix · GHSA-rfhr-62xp-2fp2 trailing-slash (npm) Fixed in 2.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23387
- 2026-10-03 Alias added: GHSA-rfhr-62xp-2fp2
References
Sources
- CVE-2021-23387 · CVE Program
- CVE-2021-23387 · NVD
- FIRST EPSS
- GHSA-rfhr-62xp-2fp2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences