CVE-2021-23518 Prototype Pollution

High 7.3 Published Updated

Prototype pollution in cached-path-relative allows attackers to manipulate object prototypes, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23518?

CVE-2021-23518 is a high-severity vulnerability in Debian Debian Linux, published on 21 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Weakness: CWE-1321

Which versions are affected by CVE-2021-23518?

2 open source packages ship an affected version, including cached-path-relative. It affects 2 products.

PackageAffectedFixed in
cached-path-relative npmAll versions1.1.0
cached-path-relative npmAll versions1.1.0

Products include Cached-Path-Relative Project Cached-Path-Relative, Debian Debian Linux.

How do I fix CVE-2021-23518?

Upgrade cached-path-relative to 1.1.0 or later.

Is CVE-2021-23518 being exploited?

There is no known exploitation of CVE-2021-23518 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-23518, GHSA-wg6g-ppvx-927h, UBUNTU-CVE-2021-23518.

Is CVE-2021-23518 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free