CVE-2021-23387
CVSS V2 Medium 5.8
CVSS V3 Medium 6.1
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.
Overview
- CVE ID
- CVE-2021-23387
- Assigner
- report@snyk.io
- Vulnerability Status
- Analyzed
- Published Version
- 2021-05-24T19:15:07
- Last Modified Date
- 2021-05-28T14:45:59
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:trailing-slash_project:trailing-slash:*:*:*:*:*:node.js:*:* | 1 | OR | 2.0.1 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5.8
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 4.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/fardog/trailing-slash/blob/f640ece055fe85275c983de5eb94661b95e35670/index.js%23L36 | Broken Link |
https://snyk.io/vuln/SNYK-JS-TRAILINGSLASH-1085707 | Exploit Patch Third Party Advisory |
https://github.com/fardog/trailing-slash/commit/f8e66f1429308247e5a119d430203077d8f05048 | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-23387 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23387 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 16:14:24 | Added to TrackCVE | |||
2022-12-05 02:54:04 | 2021-05-24T19:15Z | 2021-05-24T19:15:07 | CVE Published Date | updated |
2022-12-05 02:54:04 | 2021-05-28T14:45:59 | CVE Modified Date | updated | |
2022-12-05 02:54:04 | Analyzed | Vulnerability Status | updated |