Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade jszip to 3.x to resolve CVE-2021-23413 #656

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lux01
Copy link

@lux01 lux01 commented Sep 29, 2021

Appmetrics currently uses jszip@2.x which has a prototype pollution vulnerability:

This PR upgrades the jszip dependency to ^3.7.0 and consequently tweaks the headless_zip.js functions to be more async friendly as zip.generate() has been replaced by zip.generateAsync().

This fixes #655.

Additionally I had to fix a unit test failure that occurs when running on macOS 11 (caused by os.name now returning macOS rather than Mac OS X) to ensure my changes still passed the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prototype pollution vulnerability in jszip@2.5.x
1 participant