Skip to content

fix(deps): override node-tar to ^7.5.19 (Dependabot #94-#104, 11 alerts)#3466

Merged
Marfuen merged 1 commit into
mainfrom
mariano/fix-dependabot-node-tar
Jul 21, 2026
Merged

fix(deps): override node-tar to ^7.5.19 (Dependabot #94-#104, 11 alerts)#3466
Marfuen merged 1 commit into
mainfrom
mariano/fix-dependabot-node-tar

Conversation

@Marfuen

@Marfuen Marfuen commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Clears all 11 node-tar Dependabot alerts (#94#104) — one package, one override. Branched off main after #3464 merged; bun.lock regenerated cleanly.

The alerts

A batch of node-tar advisories (Critical → Moderate): decompression/parse DoS, arbitrary file create/overwrite via hardlink/symlink path traversal, drive-relative linkpath escape, PAX header interpretation differential (file smuggling), NUL-byte uncaught-exception DoS. All have no lower bound, so every tar copy < 7.5.19 was flagged.

Before

bun.lock had 4 lines of tar:

  • tar@6.2.1 ×5 — build tooling: node-gyp, cacache, @electron/rebuild, app-builder-lib, giget
  • tar@7.5.11fleetctl
  • tar@7.5.20 ×2 — already patched (npm internals, trigger.dev)

node-tar backported no fixes to 6.x, so the only remediation is tar ≥ 7.5.19.

Fix

Bun override "tar": "^7.5.19"bun.lock now resolves a single tar@7.5.20 for all consumers (verified: no tar@6.x or 7.5.1x remain). Net -58 lines in the lockfile from dedup.

Safe because tar@7 is a dual CJS/ESM package (exports has both import and require), so the CJS build tools that require('tar') keep working, and the extract/create API is stable across 6→7 (Node ≥18, which we already require).

Reachability

Low even pre-fix: every vulnerable copy was build-time tooling (electron packaging, native-module builds, npm cache) or trusted-source CLI extraction (fleetctl↔Fleet, trigger.dev deploy). Nothing extracts attacker-controlled archives in the runtime API. The override removes the versions entirely regardless.

⚠️ Validation to run in CI before merge

The override bumps the device-agent Electron build tooling (@electron/rebuild, app-builder-lib) and native-module builds (node-gyp) from tar 6→7. Compatibility is expected (dual package, stable API) but worth confirming the device-agent build + any node-gyp native compiles still pass. If anything breaks, the fallback is to dismiss the build-tooling-only alerts as not-reachable.


Summary by cubic

Overrides tar to ^7.5.19 to clear 11 Dependabot alerts (#94#104) and dedupe to a single patched tar@7.5.20 for all consumers.

  • Dependencies

    • Added top-level tar: ^7.5.19; bun.lock now resolves all usages to tar@7.5.20.
    • Removes vulnerable tar@6.x and 7.5.11; addresses Critical–Moderate advisories (DoS, path traversal, link escape, PAX parsing).
  • Migration

    • No code changes. Confirm CI builds that use node-gyp and Electron packaging still pass; tar@7 keeps the create/extract API and supports both CJS and ESM.

Written for commit 02f0594. Summary will update on new commits.

Review in cubic

#94-#104)

A batch of 11 node-tar advisories (Critical->Moderate: decompression DoS, path
traversal, symlink/hardlink escape, PAX parsing differentials) flagged every
tar copy below 7.5.19. bun.lock had tar@6.2.1 (x5, via build tooling: node-gyp,
cacache, @electron/rebuild, app-builder-lib, giget), tar@7.5.11 (fleetctl), and
tar@7.5.20 (already patched).

node-tar backported no fixes to the 6.x line, so the only remediation is
tar >= 7.5.19. Added a bun override "tar": "^7.5.19" — bun.lock now resolves a
single tar@7.5.20 for all consumers. tar@7 is a dual CJS/ESM package with a
stable extract/create API, so the CJS build tools keep working via require().

Reachability was low pre-fix (all vulnerable copies were build-time tooling or
trusted-source CLI extraction, none extract attacker-controlled archives in the
runtime API), but the override removes the vulnerable versions entirely.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Jul 21, 2026 3:42am
comp-framework-editor Ready Ready Preview, Comment Jul 21, 2026 3:42am
portal Ready Ready Preview, Comment Jul 21, 2026 3:42am

Request Review

@Marfuen
Marfuen merged commit 8ab5709 into main Jul 21, 2026
7 of 10 checks passed
@Marfuen
Marfuen deleted the mariano/fix-dependabot-node-tar branch July 21, 2026 03:39
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