CVE-2022-21189
Last modified
CVE-2022-21189 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 1.88% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Dexie | Dexie | < 3.2.2 | — |
| Dexie | Dexie | 4.0.0 | Alpha1 |
References
- https://github.com/dexie/Dexie.js/commit/1d655a69b9f28c3af6fae10cf5c61df387dc689bPatch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805308Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-DEXIE-2607042Exploit, Third Party Advisory
- https://github.com/dexie/Dexie.js/commit/1d655a69b9f28c3af6fae10cf5c61df387dc689bPatch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805308Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-DEXIE-2607042Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21189?
How severe is CVE-2022-21189?
How do I fix CVE-2022-21189?
Are you affected by CVE-2022-21189?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
