CVE-2022-21189 Prototype Pollution

High 7.3 Published Updated

Attackers can pollute Object.prototype via untrusted input in Dexie, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-21189?

CVE-2022-21189 is a high-severity vulnerability in dexie, published on 1 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1321

Which versions are affected by CVE-2022-21189?

4 open source packages ship an affected version, including dexie. It affects 1 product.

PackageAffectedFixed in
dexie npmAll versions3.2.2
dexie npmAll versions3.2.2
dexie npmFrom 4.0.0-alpha.14.0.0-alpha.3
dexie npmFrom 4.0.0-alpha.14.0.0-alpha.3

Products include Dexie Dexie.

How do I fix CVE-2022-21189?

Upgrade dexie to a fixed version for your release line: 3.2.2 or 4.0.0-alpha.3.

Is CVE-2022-21189 being exploited?

There is no known exploitation of CVE-2022-21189 in the wild and no public exploit code.

Sources

Also known as GHSA-3xgx-r9j4-qw9w.

Is CVE-2022-21189 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free