Skip to content

fix: drop vulnerable decompress dependency (GHSA-mp2f-45pm-3cg9), update tooling - #206

Merged
simoneb merged 2 commits into
masterfrom
fix/drop-decompress-and-tooling
Sep 23, 2026
Merged

simoneb merged 2 commits into
masterfrom
fix/drop-decompress-and-tooling

Conversation

@simoneb

@simoneb simoneb commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Fixes #205.

Security fix

decompress (used only by the Windows postinstall to extract Sysinternals' DU.zip) is affected by GHSA-mp2f-45pm-3cg9 and has no patched release. It is removed.

The archive is now read with the tar.exe (bsdtar) that ships with Windows 10+, called by full path. tar is only used to list the archive (-tf) and to stream individual entries to stdout (-xOf), never to write to disk: du.exe, du64.exe, du64a.exe and Eula.txt are written by name into bin/, and nothing else in the archive is touched. Entry paths, .. components and symlinks inside the archive therefore cannot decide where anything is written.

A first attempt that let tar -x extract into a temp directory turned out not to be enough: Windows' bsdtar followed a symlink entry and wrote outside the target. The zip-slip fixture includes that case.

Tooling (dev only, no effect on the published package)

🤖 Generated with Claude Code

https://claude.ai/code/session_01YEboe44Fee8PMf9Zv5kbqe

simoneb and others added 2 commits September 23, 2026 14:50
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YEboe44Fee8PMf9Zv5kbqe
- eslint 9 with flat config, prettier 3, eslint-plugin-prettier 5
- tests migrated from tap to node:test
- CI on Node 20/22/24 (16 and 18 are EOL), actions/setup-node v6
- regenerated package-lock.json, which had lost the fsevents entry and
  made `npm ci` fail in the release workflow

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YEboe44Fee8PMf9Zv5kbqe
@simoneb
simoneb merged commit 2ed1124 into master Sep 23, 2026
18 checks passed
@simoneb
simoneb deleted the fix/drop-decompress-and-tooling branch September 23, 2026 12:54
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.

Critical vulnerablity in fast-folder-size v2.4.0

1 participant