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.
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-01 | Published |
| 2022-05-03 | Package advisory GHSA-3xgx-r9j4-qw9w |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.67% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-3xgx-r9j4-qw9w | dexie (npm) | 3.2.2 |
| GHSA-3xgx-r9j4-qw9w | dexie (npm) | 4.0.0-alpha.3 |
Also known as: GHSA-3xgx-r9j4-qw9w
Credited: Alessio Della Libera of Snyk Security Team (other)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-16266 | 2026-07-21 | 6.3 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2026-8657 | 2026-05-16 | 8.2 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2025-3193 | 2025-09-27 | 7.5 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2025-3197 | 2025-04-04 | 7.3 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2024-21548 | 2024-12-18 | 7.5 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2024-21489 | 2024-10-01 | 8.2 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2024-21529 | 2024-09-11 | 8.8 | same weakness (CWE-1321) from the same CNA (snyk) |
| CVE-2024-21528 | 2024-09-10 | 5.9 | same 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.