{"id":"CVE-2021-23518","published":"2022-01-21T20:05:29Z","modified":"2024-09-16T18:33:30Z","title":"Prototype Pollution","vendor":null,"product":null,"tier":"tail","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","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02007,"percentile":0.81314,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","tags":[]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","tags":[]},{"url":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html","tags":["mailing-list"]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":16.26},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":"n/a","product":"cached-path-relative","versions":[">= unspecified, < 1.1.0"]}],"affected":[{"ecosystem":"npm","package":"cached-path-relative","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-wg6g-ppvx-927h"],"provenance":"source"}],"summary":{"text":"The cached-path-relative npm package before version 1.1.0 contains a prototype pollution flaw in its cachedPathRelative function, where the cache variable is initialised as {} rather than Object.create(null). An attacker can exploit this over the network without authentication or user interaction by supplying __proto__ as the origin path, which causes the function to access parent prototype properties instead of resolving a path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:39Z"},"euvd":{"id":"EUVD-2022-0723","exploited":false,"provenance":"source"}}