CVE-2021-23518
Prototype Pollution
- State
- Published
- Severity
- 7.3 High
- Published
- Jan 21, 2022
- Updated
- Sep 16, 2024
- Reserved
- Jan 8, 2021
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
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.3 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P | snyk |
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
cached-path-relativen/a |
|
References
- https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
- https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
- [debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security updatemailing-list
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.