{"cve":"CVE-2021-23518","nvd":{"published":"2022-01-21T20:15:07.963","modified":"2026-06-17T03:38:48.760","status":"Modified","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","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-1321"],"references":["https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html","https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760"],"products":["cached-path-relative_project:cached-path-relative","debian:debian_linux"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2021-23518","score":0.01943,"percentile":0.80142,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wg6g-ppvx-927h","url":"https://osv.dev/vulnerability/GHSA-wg6g-ppvx-927h","summary":"Prototype Pollution in cached-path-relative","modified":"2025-01-14T09:12:17.995903Z","packages":[{"ecosystem":"npm","name":"cached-path-relative","purl":"pkg:npm/cached-path-relative","ranges":["<1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}