CVE-2021-23518
Cached-path-relative Project Cached-path-relative vulnerability
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
Affected products
Cached-path-relative, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cached-path-relative Project Cached-path-relative runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760 · Patch
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246 · Exploit
- snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653 · Exploit
- lists.debian.org/debian-lts-announce/2022/12/msg00006.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-23518
- cve.org/CVERecord?id=CVE-2021-23518
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.