GHSA-wg6g-ppvx-927h

Suggest an improvement
Source
https://github.com/advisories/GHSA-wg6g-ppvx-927h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-wg6g-ppvx-927h/GHSA-wg6g-ppvx-927h.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wg6g-ppvx-927h
Aliases
  • CVE-2021-23518
  • SNYK-JAVA-ORGWEBJARSNPM-2348246
  • SNYK-JS-CACHEDPATHRELATIVE-2342653
Published
2022-01-27T14:27:53Z
Modified
2024-05-29T01:28:08.072945Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2022-01-21T20:15:00Z",
    "github_reviewed_at": "2022-01-24T23:03:02Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-1321"
    ]
}
References

Affected packages

npm / cached-path-relative

Package

Name
cached-path-relative
View open source insights on deps.dev
Purl
pkg:npm/cached-path-relative

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0