{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23518","id":"CVE-2021-23518","title":"Prototype Pollution","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","descriptionLong":"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","published":"2022-01-21T20:05:29.374Z","updated":"2026-10-20T10:54:32.546347927Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":["cached-path-relative"],"affectedProducts":[{"vendor":"n/a","product":"cached-path-relative","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"1.1.0","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"cached-path-relative","purl":"pkg:npm/cached-path-relative","ranges":["<1.1.0"],"fixed":["1.1.0"],"advisory":"GHSA-wg6g-ppvx-927h"}],"cwes":["CWE-1321"],"aliases":["GHSA-wg6g-ppvx-927h"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23518","tags":["advisory"]},{"url":"https://github.com/ashaffer/cached-path-relative","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02007,"epssPercentile":0.81256,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23518","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23518","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23518","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wg6g-ppvx-927h","ok":true,"note":"GHSA-wg6g-ppvx-927h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23518","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}