#VU76188 Prototype pollution in Dexie.js - CVE-2022-21189


Vulnerability identifier: #VU76188

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-21189

CWE-ID: CWE-1321

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Dexie.js
Web applications / JS libraries

Vendor: Dexie

Description

The vulnerability allows a remote attacker to execute arbitrary JavaScript code.

The vulnerability exists due to improper input validation in the Dexie.setByKeyPath(obj, keyPath, value) function. A remote attacker can pass specially crafted input to the application and perform prototype pollution, which can result in information disclosure or data manipulation.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Dexie.js: 1.0 - 4.0.0 alpha.2


External links
https://snyk.io/vuln/SNYK-JS-DEXIE-2607042
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805308
https://github.com/dexie/Dexie.js/commit/1d655a69b9f28c3af6fae10cf5c61df387dc689b
https://github.com/dexie/Dexie.js/blob/fe682ef24568278c3b31d9d6c93de095d4b77ae8/src/functions/utils.ts%23L134-L164


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability