Advisories for Npm/Cached-Path-Relative package

2022

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

The package cached-path-relative 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 …

2018