ADVISORIES

Vulnerability

CVE-2021-23518

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

4 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 2Ubuntu 1npm 1

Advisories

  • DEBIAN-CVE-2021-23518

    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…

    CVE-2021-23518 Debian Updated 23 October 2026
  • DLA-3221-1

    node-cached-path-relative - security update

    CVE-2018-16472CVE-2021-23518 Debian Updated 20 November 2026
  • GHSA-wg6g-ppvx-927h

    Prototype Pollution in cached-path-relative

    High CVE-2021-23518 npm Updated 14 January 2025
  • UBUNTU-CVE-2021-23518

    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…

    CVE-2021-23518 Ubuntu Updated 17 October 2026

References