CVE-2021-23413
MEDIUM 5.3CVSS 3.1jszip Vulnerable to Prototype Pollution
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.
- Published
- 25 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-jg8v-48h5-wgxg
- Sources
- NVDJSONOSV GHSA-jg8v-48h5-wgxgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jszip_project | jszipcpe:2.3:a:jszip_project:jszip:*:*:*:*:*:node.js:*:* |
< 3.7.0 | 3.7.0 |
| OSV | npm | jszip | >= 3.0.0, < 3.7.0 | 3.7.0 |
| OSV | npm | jszip | < 2.7.0 | 2.7.0 |
References
- https://github.com/Stuk/jszip/blob/master/lib/object.js%23L88 · Broken Link, WEB
- https://github.com/Stuk/jszip/commit/22357494f424178cb416cdb7d93b26dd4f824b36 · Patch, Third Party Advisory, WEB
- https://github.com/Stuk/jszip/pull/766 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1251499 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1251498 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-JSZIP-1251497 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23413 · ADVISORY
- https://github.com/Stuk/jszip · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 25 Jul 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Aug 2021)