cve.bz

CVE-2021-23387

6.1 mediumEPSS 1.1%

Medium (6.1) in trailing-slash project trailing-slash. EPSS 1.1% chance of exploitation in the next 30 days. Fixed in trailing-slash 2.0.1.

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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.1% chance of exploitation in the next 30 days; higher than 66% of CVEs (scores of 2026-10-31)
CWE
CWE-601
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rfhr-62xp-2fp2npmtrailing-slash<2.0.12.0.1

References

Check your stackJSON