Live threats

All CVEs / Dexie

CVE-2022-21189Dexie

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
May 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dexie.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm dexie < 3.2.2 3.2.2 npm install dexie@3.2.2
npm dexie ≥ 4.0.0-alpha.1 < 4.0.0-alpha.3 4.0.0-alpha.3 npm install dexie@4.0.0-alpha.3

Per OSV / GitHub Advisories (GHSA-3xgx-r9j4-qw9w). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dexiedexie< 3.2.2
dexiedexie4.0.0
dexiedexie4.0.0

Official sources

References

Links published by the sources. Open them with care.