Read the docs
TI-2021-06080 Aliases CVE-2021-23387GHSA-rfhr-62xp-2fp2

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

VendorProductAffected versionsFixed inStatusSource
—trailing-slashbefore 2.0.12.0.1Patch availableCNA
—trailing-slash (npm)before 2.0.12.0.1Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:*before 2.0.1VulnerableTrailing-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

  1. 2026-10-02 Threatist record created from CVE-2021-23387
  2. 2026-10-03 Alias added: GHSA-rfhr-62xp-2fp2

References

Sources