CVE-2022-21189Dexie
Critical 9.8 No auth needed
Follow: this CVE · Dexie · Dexie We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- May 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Dexie.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | dexie |
< 3.2.2 |
3.2.2 |
npm install dexie@3.2.2 |
| npm | dexie |
≥ 4.0.0-alpha.1 < 4.0.0-alpha.3 |
4.0.0-alpha.3 |
npm install dexie@4.0.0-alpha.3 |
Per OSV / GitHub Advisories (GHSA-3xgx-r9j4-qw9w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dexie | dexie | < 3.2.2 |
| dexie | dexie | 4.0.0 |
| dexie | dexie | 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory