Bug 2080838 (CVE-2022-21189) - CVE-2022-21189 dexie: Prototype Pollution in dexie
Summary: CVE-2022-21189 dexie: Prototype Pollution in dexie
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-21189
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2080839
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-02 06:49 UTC by Avinash Hanwate
Modified: 2022-05-02 11:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-02 11:15:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2022-05-02 06:49:40 UTC
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.

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

Comment 1 Avinash Hanwate 2022-05-02 06:49:58 UTC
Created mozilla-lightbeam tracking bugs for this issue:

Affects: fedora-all [bug 2080839]

Comment 2 Product Security DevOps Team 2022-05-02 11:15:49 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.