{"api_version":"1","generated_at":"2026-07-23T14:02:17+00:00","cve":"CVE-2021-23518","urls":{"html":"https://cve.report/CVE-2021-23518","api":"https://cve.report/api/cve/CVE-2021-23518.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23518","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23518"},"summary":{"title":"CVE-2021-23518","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","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-01-21 20:15:00","updated_at":"2023-02-03 19:16:00"},"problem_types":["CWE-1321"],"metrics":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Prototype Pollution in cached-path-relative | CVE-2021-23518 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Prototype Pollution in org.webjars.npm:cached-path-relative | CVE-2021-23518 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Fix other instances of prototype pollution vulnerability · ashaffer/cached-path-relative@40c73bf · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html","name":"[debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3221-1] node-cached-path-relative security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23518","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23518","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"P.Adithya Srinivas","lang":""},{"source":"LEGACY","value":"Masudul Hasan Masud Bhuiyan","lang":""},{"source":"LEGACY","value":"Cristian-Alexandru Staicu","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"23518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"cached-path-relative_project","cpe5":"cached-path-relative","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23518","qid":"179425","title":"Debian Security Update for node-cached-path-relative (CVE-2021-23518)"},{"cve":"CVE-2021-23518","qid":"181288","title":"Debian Security Update for node-cached-path-relative (DLA 3221-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-01-21T20:00:07.472890Z","ID":"CVE-2021-23518","STATE":"PUBLIC","TITLE":"Prototype Pollution"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"cached-path-relative","version":{"version_data":[{"version_affected":"<","version_value":"1.1.0"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Prototype Pollution"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653","name":"https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653"},{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246"},{"refsource":"MISC","url":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760","name":"https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221204 [SECURITY] [DLA 3221-1] node-cached-path-relative security update","url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html"}]},"description":{"description_data":[{"lang":"eng","value":"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"}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"P.Adithya Srinivas"},{"lang":"eng","value":"Masudul Hasan Masud Bhuiyan"},{"lang":"eng","value":"Cristian-Alexandru Staicu"}]},"nvd":{"publishedDate":"2022-01-21 20:15:00","lastModifiedDate":"2023-02-03 19:16:00","problem_types":["CWE-1321"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:cached-path-relative_project:cached-path-relative:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.1.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23518","Ordinal":"198245","Title":"CVE-2021-23518","CVE":"CVE-2021-23518","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23518","Ordinal":"1","NoteData":"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","Type":"Description","Title":null},{"CveYear":"2021","CveId":"23518","Ordinal":"2","NoteData":"2022-01-21","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"23518","Ordinal":"3","NoteData":"2022-01-21","Type":"Other","Title":"Modified"}]}}}