Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zeGd4LXI5ajQtcXc5d83X5g

Prototype Pollution in Dexie

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.

Permalink: https://github.com/advisories/GHSA-3xgx-r9j4-qw9w
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zeGd4LXI5ajQtcXc5d83X5g
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 2 years ago
Updated: over 1 year ago


CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Identifiers: GHSA-3xgx-r9j4-qw9w, CVE-2022-21189
References: Repository: https://github.com/dexie/Dexie.js
Blast Radius: 27.0

Affected Packages

npm:dexie
Dependent packages: 693
Dependent repositories: 4,975
Downloads: 1,610,200 last month
Affected Version Ranges: >= 4.0.0-alpha.1, <= 4.0.0-alpha.2, < 3.2.2
Fixed in: 4.0.0-alpha.3, 3.2.2
All affected versions: 0.9.9, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.6, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.2.0, 3.2.1, 4.0.0-alpha.1, 4.0.0-alpha.2
All unaffected versions: 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 4.0.1, 4.0.2, 4.0.3, 4.0.4