Security mailing lists by PureSourceCode

CVE-2021-23387

MEDIUM 6.1CVSS 3.1

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.

Published
24 May 2021
Last modified
8 Jul 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-601
Also known as
GHSA-rfhr-62xp-2fp2SNYK-JS-TRAILINGSLASH-1085707
Sources
NVDJSONOSV GHSA-rfhr-62xp-2fp2JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.8 AV:N/AC:M/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD trailing-slash_project trailing-slash
cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:*
< 2.0.1 2.0.1
OSV npm trailing-slash < 2.0.1 2.0.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 24 May 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.