jszip Vulnerable to Prototype Pollution
RSS Feed
MODERATE
GHSA-jg8v-48h5-wgxg
CVE-2021-23413
Description:
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.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| npm |
jszip
|
< 2.7.0>= 3.0.0, < 3.7.0 |
2.7.0
|
Actions
Advisory Details
| Published: | August 10, 2021 over 5 years ago |
| Updated: | October 12, 2026 about 1 month ago |
| CVSS Score: | 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| EPSS: | 3.44% 89th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWpnOHYtNDhoNS13Z3hn |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23413
- https://github.com/Stuk/jszip/pull/766
- https://github.com/Stuk/jszip/commit/22357494f424178cb416cdb7d93b26dd4f824b36
- https://github.com/Stuk/jszip/blob/master/lib/object.js%23L88
- https://snyk.io/vuln/SNYK-JS-JSZIP-1251497
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1251499
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1251498
- https://github.com/advisories/GHSA-jg8v-48h5-wgxg