Prototype Pollution in Cached-Path-Relative Project
CVE-2021-23518
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
Vulnerability class: Prototype Pollution
EPSS: 0.019 (78.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
Affected products
- Cached-path-relative_project Cached-path-relative
- Debian Debian_linux — versions 10.0
- N/a Cached-path-relative — versions unspecified
Weakness classification (CWE)
References
- report@snyk.io (Exploit, Patch, Third Party Advisory, Issue Tracking)
- report@snyk.io (Exploit, Patch, Third Party Advisory, Issue Tracking)
- report@snyk.io (Patch, Third Party Advisory)
- report@snyk.io (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-23518?
- CVE-2021-23518 is a high-severity vulnerability in Cached-Path-Relative Project, classified under Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution). CVSS score: 7.3/10. Published 2022-01-21.
- How severe is CVE-2021-23518?
- High severity. CVSS v3 base score is 7.3 out of 10.