CVE-2021-23387 – trailing-slash
Package
Manager: npm
Name: trailing-slash
Vulnerable Version: >=0 <2.0.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.0026 pctl0.49145
Details
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.
Metadata
Created: 2021-06-08T23:19:21Z
Modified: 2021-05-27T22:38:20Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-rfhr-62xp-2fp2/GHSA-rfhr-62xp-2fp2.json
CWE IDs: ["CWE-601"]
Alternative ID: GHSA-rfhr-62xp-2fp2
Finding: F156
Auto approve: 1