Skip to content
OpenAdvisories
High · 7.3 CVE-2021-23518 EUVD-2022-0723GHSA-wg6g-ppvx-927h

Prototype Pollution

Published Jan 21, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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

Affected products

VendorProductAffectedFixed
— cached-path-relative unspecified – < 1.1.0 1.1.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-cached-path-relative 1.1.0+~1.0.0-1 —
Debian 13 node-cached-path-relative 1.1.0+~1.0.0-1 —
Debian 12 node-cached-path-relative 1.1.0+~1.0.0-1 —
Debian 10 node-cached-path-relative 1.0.1-2+deb10u1 DLA-3221-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-cached-path-relative No fix yet —
Ubuntu 26.04 LTS node-cached-path-relative No fix yet —
Ubuntu 25.10 node-cached-path-relative No fix yet —
Ubuntu 24.04 LTS node-cached-path-relative No fix yet —
Ubuntu 22.04 LTS node-cached-path-relative No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-cached-path-relative No fix yet —
Ubuntu 18.04 LTS node-cached-path-relative No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm cached-path-relative < 1.1.0 1.1.0 GHSA-wg6g-ppvx-927h

Advisories 1

References