Advisory

GHSA-wg6g-ppvx-927h

Also known as: CVE-2021-23518

Summary

Prototype Pollution in cached-path-relative

Details

The package cached-path-relative before 1.1.0 is 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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-27 14:27 UTC
Modified
2025-01-14 09:12 UTC

Affected packages and fixes

cached-path-relative

npm · All systems

Affected

  • introduced 0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences