CVE-2021-23384
CVSS V2 Medium 5.8
CVSS V3 Medium 5.4
Description
The package koa-remove-trailing-slashes before 2.0.2 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::removeTrailingSlashes(), as the web server uses relative URLs instead of absolute URLs.
Overview
- CVE ID
- CVE-2021-23384
- Assigner
- report@snyk.io
- Vulnerability Status
- Analyzed
- Published Version
- 2021-05-17T18:15:07
- Last Modified Date
- 2021-05-25T14:39:43
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:koa-remove-trailing-slashes_project:koa-remove-trailing-slashes:*:*:*:*:*:node.js:*:* | 1 | OR | 2.0.2 |
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:U/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- UNCHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 5.4
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.5
References
Reference URL | Reference Tags |
---|---|
https://github.com/vgno/koa-remove-trailing-slashes/blame/6a01ba8fd019bd3ece44879c553037ad96ba7d47/index.js%23L31 | Broken Link |
https://snyk.io/vuln/SNYK-JS-KOAREMOVETRAILINGSLASHES-1085708 | Exploit Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-23384 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23384 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 16:14:57 | Added to TrackCVE | |||
2022-12-05 02:31:33 | 2021-05-17T18:15Z | 2021-05-17T18:15:07 | CVE Published Date | updated |
2022-12-05 02:31:33 | 2021-05-25T14:39:43 | CVE Modified Date | updated | |
2022-12-05 02:31:33 | Analyzed | Vulnerability Status | updated |