CVE-2022-21189 Prototype Pollution
CriticalCVSS 9.8
EPSS 1.7%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| dexie | < 3.2.2; = 4.0.0-alpha1; = 4.0.0-alpha2 | 3.2.2 | Fixed |
| npm dexie(npm) | < 3.2.2; >= 4.0.0-alpha.1, < 4.0.0-alpha.3; >= 4.0.0-alpha.1, <= 4.0.0-alpha.2 | 3.2.2, 4.0.0-alpha.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm dexie(npm) | < 3.2.2 | 3.2.2 |
| npm dexie(npm) | >= 4.0.0-alpha.1, <= 4.0.0-alpha.2 | No fix listed |
| dexie | < 3.2.2 | 3.2.2 |
| dexie | = 4.0.0-alpha1 | No fix listed |
| dexie | = 4.0.0-alpha2 | No fix listed |
| npm dexie(npm) | >= 4.0.0-alpha.1, < 4.0.0-alpha.3 | 4.0.0-alpha.3 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com broken-link
- snyk.io exploit third-party-advisory
- snyk.io exploit third-party-advisory
- github.com
- github.com product