Live threats

All CVEs / Cached-path-relative Project

CVE-2021-23518Cached-path-relative Project Cached-path-relative

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jan 21, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Cached-path-relative.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm cached-path-relative < 1.1.0 1.1.0 npm install cached-path-relative@1.1.0

Per OSV / GitHub Advisories (GHSA-wg6g-ppvx-927h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cached-path-relative_projectcached-path-relative< 1.1.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.