KeygraphLabs · CVE MCP

CVE-2022-21189 · snyk

Prototype Pollution

The package dexie before 3.2.2, from 4.0.0-alpha.1 and before 4.0.0-alpha.3 are vulnerable to Prototype Pollution in the Dexie.setByKeyPath(obj, keyPath, value) function which does not properly check the keys being set (like __proto__ or constructor). This can allow an attacker to add/modify properties of the Object.prototype leading to prototype pollution vulnerability. **Note:** This vulnerability can occur in multiple ways, for example when modifying a collection with untrusted user input.

Published 2022-05-01, last changed 2026-06-17. Weakness: CWE-1321.

CVSS
9.8
critical, from NVD
EPSS
1.71%
percentile 78.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: dexie 3.2.2, 4.0.0-alpha.3 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in dexie/Dexie.js by 1d655a69b9. Functions changed by the fix: setByKeyPath. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2022-05-01Published
2022-05-03Package advisory GHSA-3xgx-r9j4-qw9w
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.67%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-3xgx-r9j4-qw9wdexie (npm)3.2.2
GHSA-3xgx-r9j4-qw9wdexie (npm)4.0.0-alpha.3

Also known as: GHSA-3xgx-r9j4-qw9w

Credited: Alessio Della Libera of Snyk Security Team (other)

Related

CVEPublishedCVSSSummary
CVE-2026-162662026-07-216.3same weakness (CWE-1321) from the same CNA (snyk)
CVE-2026-86572026-05-168.2same weakness (CWE-1321) from the same CNA (snyk)
CVE-2025-31932025-09-277.5same weakness (CWE-1321) from the same CNA (snyk)
CVE-2025-31972025-04-047.3same weakness (CWE-1321) from the same CNA (snyk)
CVE-2024-215482024-12-187.5same weakness (CWE-1321) from the same CNA (snyk)
CVE-2024-214892024-10-018.2same weakness (CWE-1321) from the same CNA (snyk)
CVE-2024-215292024-09-118.8same weakness (CWE-1321) from the same CNA (snyk)
CVE-2024-215282024-09-105.9same weakness (CWE-1321) from the same CNA (snyk)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2022-21189, or call /api/v1/vulnerabilities/CVE-2022-21189. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org