Skip to content

[Snyk] Security upgrade adm-zip from 0.4.7 to 0.4.11 - #1644

Closed
wayne-grant wants to merge 5 commits into
mainfrom
snyk-fix-f79197ef6d879e19f21688e02576850f
Closed

[Snyk] Security upgrade adm-zip from 0.4.7 to 0.4.11#1644
wayne-grant wants to merge 5 commits into
mainfrom
snyk-fix-f79197ef6d879e19f21688e02576850f

Conversation

@wayne-grant

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Arbitrary File Write via Archive Extraction (Zip Slip)
npm:adm-zip:20180415
  1000  

Breaking Change Risk

Merge Risk: Medium

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@wayne-grant

Copy link
Copy Markdown
Author

Merge Risk: Medium

This is a patch version upgrade for adm-zip from 0.4.7 to 0.4.11. The primary change is a security fix.

Key Changes:

  • Security Fix: Version 0.4.8 and later patch a high-severity "Arbitrary File Write via Archive Extraction (Zip Slip)" vulnerability present in version 0.4.7. This change prevents archived files from being extracted outside of the intended target path.
  • Build Warning: A change in version 0.4.8 to better support Electron environments may cause a Module not found: Error: Can't resolve 'original-fs' warning in projects that use bundlers like Webpack. This is a known issue and does not typically break server-side Node.js applications, but may require configuration changes in bundled environments.
  • Bug Fixes: Versions 0.4.9 through 0.4.11 include additional bug fixes, such as resolving path issues and correcting file dates.

Recommendation: While there are no breaking API changes, the security fix alters extraction behavior to be more strict. It is recommended to verify that your extraction logic is not unintentionally relying on the vulnerable behavior. Additionally, check for build warnings related to original-fs if you are using a bundler.

Source: Package changelog, Snyk Vulnerability Database

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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.

2 participants