Security readout for executives and security teams
Plain-English summary
CVE-2021-23387 is an open redirect in the npm package trailing-slash before 2.0.1. A crafted URL can make a site redirect users to an external domain. This is mainly a phishing and trust-abuse risk, not a direct server takeover.
Executive priority
Treat as a moderate-priority web trust issue. It is unlikely to compromise infrastructure directly, but it can support phishing, credential theft, or brand misuse when vulnerable redirects are publicly reachable.
Technical view
The issue is in index.js createTrailing(), where redirect construction used relative URLs. With double-slash URL input, browsers may interpret the redirect as an external scheme-relative destination. The CVSS 3.1 score is 5.4 with network access, low complexity, no privileges, and user interaction required.
Likely exposure
Exposure is likely limited to applications that depend on trailing-slash before 2.0.1 and expose routes using the vulnerable trailing-slash redirect behavior. The provided sources do not identify affected downstream applications or platforms.
Exploitation context
The bundle reports proof-of-concept exploit maturity, but it does not cite active exploitation. CISA KEV status is false in the provided data. Practical abuse would require convincing a user to follow a crafted link.
Researcher notes
The evidence clearly identifies trailing-slash before 2.0.1 and points to the vulnerable createTrailing() code and fix commit. No CWE is listed in the bundle, and no active exploitation source is provided.
Mitigation direction
- Upgrade trailing-slash to version 2.0.1 or later.
- Check vendor and package maintainer guidance for any additional recommendations.
- Review exposed routes that perform trailing-slash redirects.
- Add redirect allowlist or absolute internal URL handling where applicable.
Validation and detection
- Inventory applications using the trailing-slash package.
- Confirm installed versions are not below 2.0.1.
- Review redirect responses for unintended external Location headers.
- Check dependency lockfiles and container builds for stale vulnerable versions.
- Add regression tests covering malformed double-slash URL handling.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2021-23387 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.4 (3.1)
- Known Exploited
- No
- Published
Vector: 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
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C2.82.5Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.4MediumVector: 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
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707CVE reference · x_refsource_MISC
- https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36CVE reference · x_refsource_MISC
- https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
