Summary
It was discovered that cached-path-relative did not properly handle certain
path values, leading to prototype pollution. An attacker could possibly use
this issue to modify the behavior of applications using
cached-path-relative, resulting in a denial of service. This issue only
affected Ubuntu 18.04 LTS. (CVE-2018-16472)
It was discovered that cached-path-relative used a path cache that
inherited properties from the object prototype, leading to prototype
pollution. An attacker could possibly use this issue to modify the behavior
of applications using cached-path-relative, resulting in a denial of
service, or another unspecified impact. This issue was caused by an
incomplete fix for CVE-2018-16472. (CVE-2021-23518)
Fixed packages 2
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | node-cached-path-relative | 1.0.1-1ubuntu0.1~esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | node-cached-path-relative | 1.0.2-1ubuntu0.1~esm1 |
Vulnerabilities 2
-
High 7.5
Prototype Pollution in cached-path-relative
A prototype pollution attack in cached-path-relative versions <=1.0.1 allows an attacker to inject properties on Object.prototype which are then inherited by all the JS objects through the prototype chain causing a DoS attack.
-
High 7.3
Prototype Pollution
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 obj…