{"id":"CVE-2022-21189","published":"2022-05-01T15:25:21Z","modified":"2024-09-16T20:07:35Z","title":"Prototype Pollution","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0171,"percentile":0.77926,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DEXIE-2607042","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805308","tags":["x_refsource_MISC"]},{"url":"https://github.com/dexie/Dexie.js/blob/fe682ef24568278c3b31d9d6c93de095d4b77ae8/src/functions/utils.ts%23L134-L164","tags":["x_refsource_MISC"]},{"url":"https://github.com/dexie/Dexie.js/commit/1d655a69b9f28c3af6fae10cf5c61df387dc689b","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":15.59},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":"n/a","product":"dexie","versions":[">= unspecified, < 3.2.2",">= 4.0.0-alpha.1, < unspecified",">= unspecified, < 4.0.0-alpha.3"]}],"affected":[{"ecosystem":"npm","package":"dexie","vulnerableRanges":["<3.2.2",">=4.0.0-alpha.1, <4.0.0-alpha.3"],"patched":["3.2.2","4.0.0-alpha.3"],"from":["GHSA-3xgx-r9j4-qw9w"],"provenance":"source"}],"summary":{"text":"The Dexie package (versions before 3.2.2 and from 4.0.0-alpha.1 before 4.0.0-alpha.3) has a prototype pollution flaw in its Dexie.setByKeyPath(obj, keyPath, value) function, which fails to properly validate keys such as __proto__ or constructor. An attacker can exploit this over the network without authentication or user interaction, for example by supplying untrusted input when modifying a collection, to add or modify properties on Object.prototype.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:09Z"},"euvd":{"id":"EUVD-2022-2258","exploited":false,"provenance":"source"}}