CVE-2021-23387
published medium CVSS 3.1 · 5.4Open Redirect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | trailing-slashunspecified to < 2.0.1 | Affected | Not stated | snyk |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | trailing-slash | unspecified to < 2.0.1 (affected · custom) | snyk · cna |
Weaknesses
1- Open Redirect
References
3Provider assertions
2snyk · cna
Open Redirect
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 05e426bfce0272d892d2b1aefb8c9e87e5c7b21800407b9a6c53a0e1a42e8be7
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record