Prototype pollution in dexie
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | dexie | before 3.2.2; 4.0.0-alpha.1 and later; before 4.0.0-alpha.3 | 3.2.2, 4.0.0-alpha.3 | Patch available | CNA |
| — | dexie (npm) | before 3.2.2 | 3.2.2 | Patch available | GHSA-3xgx-r9j4-qw9w |
| — | dexie (npm) | 4.0.0-alpha.1 to before 4.0.0-alpha.3 | 4.0.0-alpha.3 | Patch available | GHSA-3xgx-r9j4-qw9w |
- dexie Vendor— Affected before 3.2.2; 4.0.0-alpha.1 and later; before 4.0.0-alpha.3 Fixed in 3.2.2, 4.0.0-alpha.3 Patch available CNA
- dexie (npm) Vendor— Affected before 3.2.2 Fixed in 3.2.2 Patch available GHSA-3xgx-r9j4-qw9w
- dexie (npm) Vendor— Affected 4.0.0-alpha.1 to before 4.0.0-alpha.3 Fixed in 4.0.0-alpha.3 Patch available GHSA-3xgx-r9j4-qw9w
Remediation
- Fix · CNA dexie Fixed in 3.2.2, 4.0.0-alpha.3
- Fix · GHSA-3xgx-r9j4-qw9w dexie (npm) Fixed in 3.2.2 Advisory →
- Fix · GHSA-3xgx-r9j4-qw9w dexie (npm) Fixed in 4.0.0-alpha.3 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21189
- 2026-10-03 Alias added: GHSA-3xgx-r9j4-qw9w
References
Sources
- CVE-2022-21189 · CVE Program
- CVE-2022-21189 · NVD
- FIRST EPSS
- GHSA-3xgx-r9j4-qw9w · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21189 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences