Skip to content

fix(security): upgrade tar and preserve Node 18 startup - #1806

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/dependabot-tar-8
Dec 2, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/dependabot-tar-8

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Socket CLI unpacks downloaded Coana components and container images. Upgrade the workspace to tar@8.0.5 to pick up its security fixes, and adapt the callers that read or write package and Node header archives to the new stream API. Local npm packages continue to omit project-only patch settings when packed.

Keep the CLI usable on its declared minimum of Node 18.20.8. Two bundled copies of the package URL parser used Array.prototype.toSorted during startup. Both now sort a copy when the runtime lacks that method.

Dependabot alerts

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Security-driven dependency major bump with patched transitive consumers and tarball extraction on downloaded artifacts; tar 8 also requires Node ≥22 per its package metadata.

Overview
Upgrades tar from 7.5.23 to 8.0.5 across the workspace (package.json, pnpm-workspace.yaml overrides, lockfile) and adds tar@8.0.5 to minimumReleaseAgeExclude so the security bump can land immediately.

Because tar 8 changes the streaming API (input / file / cwd, onEntry vs onReadEntry, etc.), the PR adds pnpm patches for @cyclonedx/cdxgen, node-gyp, and pacote so Docker image export, Node headers install, and npm tarball extract/create still work on the pinned version.

Coana CLI download in src/utils/coana/release.mts is updated to use extract with an async-generator input (size-checked stream) instead of stream.pipeline and the old x helper.

Reviewed by Cursor Bugbot for commit 68a3480. Configure here.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedtar@​7.5.23 ⏵ 8.0.5100 +4100 +7599 +196100

View full report

@socket-security-staging

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedtar@​7.5.23 ⏵ 8.0.5100 +2100 +7599 +196100

View full report

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 68a3480. Configure here.

Comment thread package.json Resolved
@jdalton John-David Dalton (jdalton) changed the title fix(security): upgrade tar to 8.0.5 fix(security): upgrade tar and preserve Node 18 startup Dec 2, 2026
@jdalton
John-David Dalton (jdalton) merged commit 4f1e074 into v1.x Dec 2, 2026
10 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/dependabot-tar-8 branch December 2, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants