Skip to main content
← All vulnerabilities
CVE-2021-23387GHSA-RFHR-62XP-2FP2SNYK-JS-TRAILINGSLASH-1085707

Open Redirect

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.1
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a trailing-slash

    fixed in 2.0.1

  • trailing-slashnpm

    fixed in 2.0.1

References 3

snyk.io

GitHub · fardog/trailing-slash