Skip to content

Override tar to 8.0.5: every 7.x release now has advisories - #535

Open
leftibot wants to merge 1 commit into
cpp-best-practices:mainfrom
leftibot:npm-tar-8
Open

leftibot wants to merge 1 commit into
cpp-best-practices:mainfrom
leftibot:npm-tar-8

Conversation

@leftibot

@leftibot leftibot commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

npm audit fails on main again. Six new high-severity advisories against node-tar (symlink containment bypasses: GHSA-mhqm-9wj8-w7r4, GHSA-jmj2-9c5q-vw73, GHSA-hqgx-p3r3-2cfg, GHSA-gvrf-jx37-rjv5, GHSA-4pf9-5fpx-xmr6, GHSA-3wwj-8j6r-q339) cover tar <=7.5.24. That includes the 7.5.21 that #534 pinned, and no 7.x release is clear of them.

This PR changes the override to "tar": "8.0.5", which has no advisories.

The tradeoff. tar reaches us only through @jazzer.js/fuzzer → cmake-js@8.0.0, which asks for tar ^7.5.6. tar 8 is a rewrite: extract() returns a Promise, not a Node stream. That means cmake-js's downloadTgz, used when building from source, would break. Nothing here runs it:

  • @jazzer.js/fuzzer ships prebuilt binaries (prebuilds/).
  • It has no install script.
  • Nothing loads cmake-js at run time.

When a cmake-js release accepts tar 8, the override can go.

Checked locally:

  • npm audit: 0 vulnerabilities.
  • npm run format, lint, typecheck, test: all pass.
  • npm run fuzz (60 s, jazzer): 1.06M runs, passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Six new high-severity advisories (symlink containment bypasses) cover
tar <=7.5.24, which includes the 7.5.21 pinned in cpp-best-practices#534. No 7.x release
is clear of them. tar 8.0.5 has no advisories.

cmake-js 8.0.0 asks for tar ^7.5.6, and tar 8's extract() is no longer
a Node stream, so cmake-js's build-from-source download would break.
Nothing here runs it: @jazzer.js/fuzzer ships prebuilt binaries, has no
install script, and loads none of cmake-js at run time. The 60-second
fuzz run passes with the override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.45%. Comparing base (3ad6ffe) to head (df2bb3f).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #535    +/-   ##
========================================
  Coverage   99.45%   99.45%            
========================================
  Files         378      382     +4     
  Lines       27932    28683   +751     
  Branches     3550     3666   +116     
========================================
+ Hits        27781    28528   +747     
- Misses        151      155     +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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