Skip to content

fix: [adm-zip] Upgrade adm-zip from 0.4.7 to 0.5.18 to resolve CVE-2018-1002204 - #278

Open
hannahhuh-cog wants to merge 1 commit into
mainfrom
devin/1789373255-fix-adm-zip-zip-slip
Open

hannahhuh-cog wants to merge 1 commit into
mainfrom
devin/1789373255-fix-adm-zip-zip-slip

Conversation

@hannahhuh-cog

@hannahhuh-cog hannahhuh-cog commented Sep 14, 2026

Copy link
Copy Markdown

Summary

Bumps the direct dependency adm-zip 0.4.7 -> 0.5.18 (package.json + package-lock.json) to remediate the Critical Zip Slip vulnerability flagged by the scheduled Snyk SCA scan.

Vulnerability

  • Title: Arbitrary File Write via Archive Extraction (Zip Slip)
  • CVE: CVE-2018-1002204 · Snyk: npm:adm-zip:20180415
  • Severity: Critical (CWE-29)
  • Affected: adm-zip@0.4.7 (direct dependency, used in routes/index.js for extractAllTo)
  • Fixed in: 0.4.11 (Snyk); upgraded to 0.5.18 which additionally covers SNYK-JS-ADMZIP-1065796 (Directory Traversal) and CVE-2026-39244 (resource exhaustion) affecting the same package.

Risk: a crafted ZIP with ../ entries could write files outside the extraction directory during zip.extractAllTo(...).

Verification: require('adm-zip') resolves 0.5.18 and extractAllTo is still exported; routes/index.js loads without module errors. Snyk breakability check rated the upgrade medium risk (stricter zip descriptor validation since 0.5.15) — exercise the /import zip flow with real archives before release.

Snyk scan reference: Snyk MCP SCA scan of COG-GTM/nodejs-goof on 2026-09-14 (org 9e26acce-22c7-4efc-b470-21d9587f49fe).

Devin-Org: engineering

Link to Devin session: https://app.devin.ai/sessions/387468bb0c6d4d6dbb7183fbbb24385f
Open in Devin Desktop: https://app.devin.ai/desktop/session/387468bb0c6d4d6dbb7183fbbb24385f?variant=devin
Requested by: @hannahhuh-cog


Devin Review

Co-Authored-By: Hannah Huh <hannah.huh@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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.

1 participant