CVE-2021-23518

Summary

CVECVE-2021-23518
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-01-21 20:15:00 UTC
Updated2023-02-03 19:16:00 UTC
DescriptionThe 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

Risk And Classification

Problem Types: CWE-1321

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Cached-path-relative Project Cached-path-relative All All All All
Operating System Debian Debian Linux 10.0 All All All

References

ReferenceSourceLinkTags
Prototype Pollution in cached-path-relative | CVE-2021-23518 | Snyk CONFIRM snyk.io
Prototype Pollution in org.webjars.npm:cached-path-relative | CVE-2021-23518 | Snyk CONFIRM snyk.io
Fix other instances of prototype pollution vulnerability · ashaffer/cached-path-relative@40c73bf · GitHub CONFIRM github.com
[SECURITY] [DLA 3221-1] node-cached-path-relative security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: P.Adithya Srinivas

LEGACY: Masudul Hasan Masud Bhuiyan

LEGACY: Cristian-Alexandru Staicu

Legacy QID Mappings

  • 179425 Debian Security Update for node-cached-path-relative (CVE-2021-23518)
  • 181288 Debian Security Update for node-cached-path-relative (DLA 3221-1)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report