{"schemaVersion":3,"id":"CVE-2021-23518","aliases":["UBUNTU-CVE-2021-23518","DEBIAN-CVE-2021-23518","GHSA-wg6g-ppvx-927h"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2022-01-21T20:05:29.374Z","modified":"2024-09-16T18:33:30.300Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":10,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01943,"percentile":0.79867,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01943},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01943,"percentile":0.79867}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01943,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01943,"percentile":0.79867}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_D8A7571FFA3C2674","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_0CC24BA7727EA8C6","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","description":"The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1321.html"}],"affected":[{"vendor":"cached-path-relative_project","product":"cached-path-relative","name":"cached-path-relative","label":"cached-path-relative","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0","eol":null,"hubHref":"/vendor/cached-path-relative_project/cached-path-relative"},{"vendor":"debian","product":"node-cached-path-relative","name":"node-cached-path-relative","label":"node-cached-path-relative","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-cached-path-relative","purlType":"deb","versions":[{"text":"< 1.1.0+~1.0.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0+~1.0.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-cached-path-relative","name":"node-cached-path-relative","label":"node-cached-path-relative","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-cached-path-relative","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"npm","product":"cached-path-relative","name":"cached-path-relative","label":"cached-path-relative","ecosystem":"Npm","cpePart":"a","purl":"pkg:npm/cached-path-relative","purlType":"npm","versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","label":"snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","hostname":"snyk.io","tags":["REPORT","WEB","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","hostname":"snyk.io","tags":["REPORT","WEB","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","label":"github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","hostname":"github.com","tags":["REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html","label":"lists.debian.org/debian-lts-announce/2022/12/msg00006.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-23518","label":"ubuntu.com/security/CVE-2021-23518","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23518","label":"www.cve.org/CVERecord?id=CVE-2021-23518","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23518","label":"security-tracker.debian.org/tracker/CVE-2021-23518","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23518","label":"nvd.nist.gov/vuln/detail/CVE-2021-23518","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ashaffer/cached-path-relative","label":"github.com/ashaffer/cached-path-relative","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["DLA-3221-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-01-21T20:05:29.374Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T18:33:30.300Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:31:08.503Z","stale":false,"partial":false}}