MEDIUM5.3
GHSA-jg8v-48h5-wgxg
jszip Vulnerable to Prototype Pollution
Quick fix
GHSA-jg8v-48h5-wgxg — jszip: upgrade to the fixed version with the command below.
npm install jszip@3.7.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23413[ADVISORY]
- https://github.com/Stuk/jszip/pull/766[WEB]
- https://github.com/Stuk/jszip/commit/22357494f424178cb416cdb7d93b26dd4f824b36[WEB]
- https://github.com/Stuk/jszip[PACKAGE]
- https://github.com/Stuk/jszip/blob/master/lib/object.js%23L88[WEB]
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1251499[WEB]
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1251498[WEB]
- https://snyk.io/vuln/SNYK-JS-JSZIP-1251497[WEB]