CVEfocus › CVE database › CVE-2021-23518

CVE-2021-23518Prototype Pollution

CVSS 7.3 HighEPSS 2.0% (higher than 81% of CVEs)Published 2022-01-21Updated 2024-09-16Assigner: snyk

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

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-cached-path-relativeFix pendingUBUNTU-CVE-2021-23518
Ubuntu 26.04node-cached-path-relativeUnder investigationUBUNTU-CVE-2021-23518
Ubuntu 25.10node-cached-path-relativeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-23518
Ubuntu 24.04node-cached-path-relativeUnder investigationUBUNTU-CVE-2021-23518
Ubuntu 22.04node-cached-path-relativeUnder investigationUBUNTU-CVE-2021-23518
Ubuntu 20.04node-cached-path-relativeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-23518
Ubuntu 18.04node-cached-path-relativeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-23518
Debian 14node-cached-path-relativeFixed1.1.0+~1.0.0-1DEBIAN-CVE-2021-23518
Debian 13node-cached-path-relativeFixed1.1.0+~1.0.0-1DEBIAN-CVE-2021-23518
Debian 12node-cached-path-relativeFixed1.1.0+~1.0.0-1DEBIAN-CVE-2021-23518
npm librarycached-path-relativeFixed1.1.0GHSA-wg6g-ppvx-927h

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.