Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. trailing-slash
  4. ›
  5. CVE-2021-23387

CVE-2021-23387: URL Redirection to Untrusted Site (Open Redirect)

May 24, 2021 (updated May 28, 2021)

The package trailing-slash are vulnerable to Open Redirect via the use of trailing double slashes in the URL when accessing the vulnerable endpoint.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-23387

Code Behaviors & Features

Detect and mitigate CVE-2021-23387 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.1

Fixed versions

  • 2.0.1

Solution

Upgrade to version 2.0.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/trailing-slash/CVE-2021-23387.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:08 +0000.