Skip to content

chore(security): bump transitive node-tar to >=7.5.11 (clear 6 high advisories) - #1498

Merged
xuyushun441-sys merged 1 commit into
mainfrom
fix/audit-tar-high-advisories
Jun 2, 2026
Merged

xuyushun441-sys merged 1 commit into
mainfrom
fix/audit-tar-high-advisories

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Collaborator

Summary

Clears the Validate Dependencies gate (pnpm audit --audit-level=high), which was red on main with 6 high-severity advisories — all the same dependency, node-tar@6.2.1, pulled transitively by sqlite3's node-gyp toolchain (driver-sql → sqlite3 → … → tar).

sqlite3 is only an optional peer of driver-sql (the real sqlite driver is better-sqlite3) and its build script is pnpm-ignored, so the vulnerable tar was never executed — but the audit gate flags it regardless.

Fix

Scoped pnpm.override:

"tar@>=2.0.0 <7.5.11": "^7.5.11"
  • Bumps every vulnerable node-tar (6.2.1) to a patched 7.5.x+ — patched versions (7.5.15, 7.9.0) already resolved elsewhere in the tree.
  • The >=2.0.0 lower bound deliberately leaves the unrelated ancient tar@1.1.11 (a different package line) untouched.

Advisories cleared: GHSA-34x7-hfp2-rc4v, -8qq5-rm4j-mr97, -83g3-92jg-28cx, -qffp-2rhf-9h96, -9ppj-qmqm-q256, -r6q2-hw4h-h46w.

Verification

  • pnpm audit --audit-level=high → exit 0 (0 high / 0 critical; 2 low + 5 moderate remain, below the gate threshold).
  • pnpm install --frozen-lockfile → clean; check-changeset-fixed.mjs → in sync.
  • tar@6.2.1 no longer in the lockfile; tar@1.1.11 preserved.
  • @objectstack/driver-sql build + 132 tests pass.

Lockfile/override-only; no published package code changes (empty changeset).

🤖 Generated with Claude Code

…dvisories)

`sqlite3` (an optional peer driver in `driver-sql`, build script pnpm-ignored)
pulled `tar@6.2.1` via its node-gyp toolchain, tripping 6 high-severity
node-tar path-traversal/symlink advisories — which failed the
`pnpm audit --audit-level=high` "Validate Dependencies" gate.

Adds a scoped pnpm override `"tar@>=2.0.0 <7.5.11": "^7.5.11"` so every
vulnerable node-tar resolves to a patched 7.5.x+ (the ancient unrelated
`tar@1.1.11` line is deliberately excluded by the `>=2.0.0` lower bound).

Verified: `pnpm audit --audit-level=high` → exit 0 (0 high / 0 critical;
2 low + 5 moderate remain, below the gate); `pnpm install --frozen-lockfile`
clean; `@objectstack/driver-sql` build + 132 tests pass.

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

vercel Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 1, 2026 10:31pm

Request Review

This branch was successfully deployed

1 active deployment
Preview — 3527f078 Deployed Jun 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/xs tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants