Bug 1986170 (CVE-2021-23413)

Summary: CVE-2021-23413 jszip: crafting a new zip file with filenames set to object prototype values results in a returned object with a modified prototype instance
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aileenc, bdettelb, chazlett, dymurray, fjansen, gmalinko, ibolton, janstey, jmatthew, jmontleo, jochrist, jwon, slucidi, sseago
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: jszip 3.7.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in JSZip. Crafting a new zip file with filenames set to Object prototype values (ex. __proto__, toString, etc.) results in a returned object with a modified prototype instance. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1989406    
Bug Blocks: 1986171    

Description Guilherme de Almeida Suckevicz 2021-07-26 20:02:36 UTC
This affects the package jszip before 3.7.0. Crafting a new zip file with filenames set to Object prototype values (e.g __proto__, toString, etc) results in a returned object with a modified prototype instance.

Reference:
https://snyk.io/vuln/SNYK-JS-JSZIP-1251497

Upstream patch:
https://github.com/Stuk/jszip/pull/766
https://github.com/Stuk/jszip/commit/22357494f424178cb416cdb7d93b26dd4f824b36