Advisory

GHSA-3xgx-r9j4-qw9w

Also known as: CVE-2022-21189

Summary

Prototype Pollution in Dexie

Details

Dexie is a minimalistic wrapper for IndexedDB. 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-03 00:00 UTC
Modified
2025-01-14 10:26 UTC

Affected packages and fixes

dexie

npm · All systems

Affected

  • introduced 0, fixed 3.2.2 (semver)

Fixed versions

3.2.2

Fix

dexie

npm · All systems

Affected

  • introduced 4.0.0-alpha.1, fixed 4.0.0-alpha.3 (semver)

Fixed versions

4.0.0-alpha.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences