Advisory

GHSA-rfhr-62xp-2fp2

Also known as: CVE-2021-23387, SNYK-JS-TRAILINGSLASH-1085707

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-06-08 23:19 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

trailing-slash

npm · All systems

Affected

  • introduced 0, fixed 2.0.1 (semver)

Fixed versions

2.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences