Bug 2080847 (CVE-2022-25645)

Summary: CVE-2022-25645 dset: Prototype Pollution in dset
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: btarraso, gparvin, jramanat, kcormier, njean, pahickey, stcannon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dset 3.1.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the dset package via 'dset/merge' mode, as the dset function checks for prototype pollution by validating if the top-level path contains a __proto__, constructor, or prototype. This flaw allows an attacker to craft a malicious object, bypassing this check and achieving prototype pollution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-28 10:37:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2082522    
Bug Blocks: 2080848    

Description Avinash Hanwate 2022-05-02 07:10:01 UTC
All versions of package dset are vulnerable to Prototype Pollution via 'dset/merge' mode, as the dset function checks for prototype pollution by validating if the top-level path contains __proto__, constructor or protorype. By crafting a malicious object, it is possible to bypass this check and achieve prototype pollution.

https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974
https://snyk.io/vuln/SNYK-JS-DSET-2330881
https://github.com/lukeed/dset/blob/master/src/merge.js%23L9

Comment 6 errata-xmlrpc 2022-06-27 17:03:52 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8

Via RHSA-2022:5201 https://access.redhat.com/errata/RHSA-2022:5201

Comment 7 Product Security DevOps Team 2022-06-28 10:37:02 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-25645