Prototype Pollution in Dexie
CVE-2022-21189
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.
Vulnerability class: Prototype Pollution
EPSS: 0.017 (74.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
Affected products
- Dexie — versions 4.0.0
- N/a Dexie — versions unspecified, 4.0.0-alpha.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- report@snyk.io (Exploit, Third Party Advisory, x_refsource_MISC)
- report@snyk.io (Exploit, Third Party Advisory, x_refsource_MISC)
- report@snyk.io (x_refsource_MISC, Broken Link)
- report@snyk.io (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2022-21189?
- CVE-2022-21189 is a high-severity vulnerability in Dexie, classified under Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution). CVSS score: 7.3/10. Published 2022-05-01.
- How severe is CVE-2022-21189?
- High severity. CVSS v3 base score is 7.3 out of 10.
- Is CVE-2022-21189 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.