CVE-2021-23518
CVSS V2 High 7.5
CVSS V3 Critical 9.8
Description
The package cached-path-relative before 1.1.0 are vulnerable to Prototype Pollution via the cache variable that is set as {} instead of Object.create(null) in the cachedPathRelative function, which allows access to the parent prototype properties when the object is used to create the cached relative path. When using the origin path as __proto__, the attribute of the object is accessed instead of a path. **Note:** This vulnerability derives from an incomplete fix in https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573
Overview
- CVE ID
- CVE-2021-23518
- Assigner
- report@snyk.io
- Vulnerability Status
- Analyzed
- Published Version
- 2022-01-21T20:15:07
- Last Modified Date
- 2023-02-03T19:16:16
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:cached-path-relative_project:cached-path-relative:*:*:*:*:*:node.js:*:* | 1 | OR | 1.1.0 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 7.5
- Severity
- HIGH
- Exploitability Score
- 10
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 9.8
- Base Severity
- CRITICAL
- Exploitability Score
- 3.9
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760 | Patch Third Party Advisory |
https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html | |
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246 | Exploit Issue Tracking Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653 | Exploit Issue Tracking Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-23518 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23518 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:35:58 | Added to TrackCVE | |||
2022-12-06 07:26:46 | 2022-01-21T20:15Z | 2022-01-21T20:15:07 | CVE Published Date | updated |
2022-12-06 07:26:46 | 2022-12-05T02:15:09 | CVE Modified Date | updated | |
2022-12-06 07:26:46 | Modified | Vulnerability Status | updated | |
2022-12-06 07:26:51 | References | updated | ||
2022-12-08 06:33:37 | Modified | Undergoing Analysis | Vulnerability Status | updated |
2023-02-03 20:15:01 | 2023-02-03T19:16:16 | CVE Modified Date | updated | |
2023-02-03 20:15:01 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |