Bug 2044654 (CVE-2021-23518) - CVE-2021-23518 cached-path-relative: Prototype Pollution via the cache variable
Summary: CVE-2021-23518 cached-path-relative: Prototype Pollution via the cache variable
Keywords:
Status: NEW
Alias: CVE-2021-23518
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2052670 2053623 2065484 2079060
Blocks: 2044989
TreeView+ depends on / blocked
 
Reported: 2022-01-24 21:58 UTC by Pedro Sampaio
Modified: 2023-10-25 17:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A prototype pollution vulnerability was discovered in cached-path-relative. This flaw allows a remote, unauthenticated attacker to inject a cache variable to leak sensitive information.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2022-01-24 21:58:20 UTC
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

https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2348246
https://github.com/ashaffer/cached-path-relative/commit/40c73bf70c58add5aec7d11e4f36b93d144bb760
https://snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-2342653

Comment 1 juneau 2022-02-07 20:01:11 UTC
Marking services-managed-kafka notaffected:
services-managed-kafka/managed-kafka/kafka-ui:d79c6ef/cached-path-relative-1.1.0 https://gitlab.cee.redhat.com/mk-ci-cd/kafka-ui/blob/main/package-lock.json


Note You need to log in before you can comment on or make changes to this bug.