CVE-2021-23518 json
Prototype Pollution
published 2022-01-21 4 y ago modified 2026-06-17 4 mo ago also GHSA-wg6g-ppvx-927h , EUVD-2022-0723
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- npm cached-path-relative 1.1.0
- n/a cached-path-relative 1.1.0
- node-cached-path-relative Debian 14, Debian 13, Debian 12 1.1.0+~1.0.0-1
debian advisories DEBIAN-CVE-2021-23518
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23518 updated cvss 8.6
cached-path-relative: Prototype Pollution via the cache variable
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8affected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | cached-path-relative | <1.1.0 |
1.1.0 |
Affected products
- n/a cached-path-relative
Classification
- Weakness
-
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
References
-
github.com
/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653
web, exploit, issue-tracking, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
web, exploit, issue-tracking, patch, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/12/msg00006.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23518
advisory
-
github.com
/ashaffer/cached-path-relative
package
Sources
- CVE List CVE-2021-23518
- GitHub Advisory GHSA-wg6g-ppvx-927h
- NVD CVE-2021-23518
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.