ghsa-wg6g-ppvx-927h
Vulnerability from github
Published
2022-01-27 14:27
Modified
2022-01-27 14:26
Severity
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
{ "affected": [ { "package": { "ecosystem": "npm", "name": "cached-path-relative" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.1.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-23518" ], "database_specific": { "cwe_ids": [ "CWE-1321" ], "github_reviewed": true, "github_reviewed_at": "2022-01-24T23:03:02Z", "nvd_published_at": "2022-01-21T20:15:00Z", "severity": "HIGH" }, "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", "id": "GHSA-wg6g-ppvx-927h", "modified": "2022-01-27T14:26:40Z", "published": "2022-01-27T14:27:53Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23518" }, { "type": "WEB", "url": "https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760" }, { "type": "PACKAGE", "url": "https://github.com/ashaffer/cached-path-relative" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html" }, { "type": "WEB", "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246" }, { "type": "WEB", "url": "https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "type": "CVSS_V3" } ], "summary": "Prototype Pollution in cached-path-relative" }
Loading...