# CVE-2021-23518: Prototype Pollution

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-01-21 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2021-23518, DEBIAN-CVE-2021-23518, GHSA-wg6g-ppvx-927h
- Record: https://cvemate.com/vulnerability/CVE-2021-23518 · JSON: https://cvemate.com/vulnerability/CVE-2021-23518/json

## Description

```text
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
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.007%, percentile 81.504%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- cached-path-relative\_project cached-path-relative: \< 1.1.0
- debian node-cached-path-relative (Debian): \< 1.1.0+~1.0.0-1
- ubuntu node-cached-path-relative (Ubuntu): All versions (No fix recorded) \| \< 1.0.1-1ubuntu0.1~esm1 \| \< 1.0.2-1ubuntu0.1~esm1
- debian debian\_linux: 10.0
- npm cached-path-relative (Npm): \< 1.1.0

## 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>
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html>
- <https://ubuntu.com/security/CVE-2021-23518>
- <https://www.cve.org/CVERecord?id=CVE-2021-23518>
- <https://security-tracker.debian.org/tracker/CVE-2021-23518>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23518>
- <https://github.com/ashaffer/cached-path-relative>
- <https://ubuntu.com/security/notices/USN-9326-1>

---

Data as of 2026-12-05T07:29:59.389Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
