CVE-2021-23518 Details
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
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760 | CVE | PatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html | CVE | Mailing ListThird Party Advisory |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246 | CVE | ExploitIssue TrackingPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653 | CVE | ExploitIssue TrackingPatchThird Party Advisory |
| https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760 | [email protected] | PatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html | [email protected] | Mailing ListThird Party Advisory |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246 | [email protected] | ExploitIssue TrackingPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653 | [email protected] | ExploitIssue TrackingPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cached-path-relative project cached-path-relative | < 1.1.0 |
CPE
Remediation
| |
| debian debian linux | 10.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 3, 2023 | Modified Analysis | [email protected] |
| Dec 5, 2022 | CVE Modified | [email protected] |
| Jan 27, 2022 | Initial Analysis | [email protected] |
| Jan 21, 2022 | CVE Modified | [email protected] |