Skip to content

fix(security): address registry security alerts - #315

Merged
John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/security-alerts
Dec 2, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
mainfrom
fix/security-alerts

Conversation

@jdalton

Copy link
Copy Markdown
Collaborator

Update the registry’s dependency resolutions so developers and CI install versions outside the affected ranges for all 49 open npm Dependabot alerts. Keep package and Node header extraction working with tar 8 by adapting the streaming callers in pacote and node-gyp.

Escape package export names before writing override-lane diagnostics so log viewers display those names as text. This addresses CodeQL alert #8.

The two approved release-age exceptions apply only to tar@8.0.5 and cross-spawn@7.1.0. The 43 Python alerts refer to lockfiles already removed from the default branch in d73e494.

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Tar 8 compatibility is carried by vendored patches on pacote/node-gyp until upstream releases; a bad extract/pack path could break installs and native builds across CI.

Overview
Bumps the workspace catalog and lockfile so installs resolve outside Dependabot-alerted ranges: vitest/@vitest/* 5.1.2, vite 8.3.8, minimatch 11.0.9, tar 8.0.5, plus new pnpm overrides (e.g. glob 14, cross-spawn 7.1.0, undici, js-yaml, katex, ip-address, smol-toml, postcss-selector-parser, markdown-it). minimumReleaseAgeExclude temporarily allows tar@8.0.5 and cross-spawn@7.1.0.

tar 8 breaks stream-style tar usage in node-gyp and pacote; new patches switch node-gyp install.js to the input-based tar.extract API and refactor pacote #extract / pack streaming to tar.x({ input }) and Readable.fromWeb(tar.c(...)). The minimatch patch is retargeted to 11.0.9 (default export on ESM + CJS). The vitest patch is retargeted to 5.1.2 (configurable worker SIGKILL timeout under --cpu-prof; include globs no longer pass ignore: exclude).

override-lanes-match now quotes and Unicode-escapes exported function names in failure output so log viewers cannot misparse markup (tests cover names like different<Name>).

Reviewed by Cursor Bugbot for commit d21589b. Configure here.

@socket-security

socket-security Bot commented Dec 2, 2026 •

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
Updated@​vitest/​ui@​5.0.3 ⏵ 5.1.298 -1100 +27599 +1100
Updated@​vitest/​coverage-v8@​5.0.3 ⏵ 5.1.299 +110079 +199 +1100
Updatedvitest@​5.0.3 ⏵ 5.1.298 +110079 +199 +1100
Updatedtar@​7.5.22 ⏵ 8.0.5100 +4100 +7599 +196 +1100
Updatedminimatch@​10.2.6 ⏵ 11.0.9100 +1100 +310096 +1100

View full report

@socket-security-staging

socket-security-staging Bot commented Dec 2, 2026 •

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
Updated@​vitest/​ui@​5.0.3 ⏵ 5.1.299100 +27599100
Updated@​vitest/​coverage-v8@​5.0.3 ⏵ 5.1.299 +110079 +199100
Updatedvitest@​5.0.3 ⏵ 5.1.298 +110079 +199100
Updatedtar@​7.5.22 ⏵ 8.0.5100 +2100 +7599 +196100
Updatedminimatch@​10.2.6 ⏵ 11.0.9100 +1100 +310096 +4100

View full report

@socket-security-staging

socket-security-staging Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
License policy violation: npm @vitest/istanbul-lib-report under OFL-1.1

License: OFL-1.1 - The applicable license policy does not permit this license (5) (package/dist/reports/html/assets/readex-pro-license.txt)

From: package.json → npm/@vitest/coverage-v8@5.1.2 → npm/@vitest/istanbul-lib-report@2.1.1

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity-Staging ignore npm/@vitest/istanbul-lib-report@2.1.1. You can also ignore all packages with @SocketSecurity-Staging ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

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 2 potential issues.

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 d21589b. Configure here.

Comment thread patches/pacote@21.5.1.patch Resolved
Comment thread patches/node-gyp@12.4.0.patch Resolved
Update vulnerable npm dependencies and adapt pacote and node-gyp to tar 8. Escape upstream names in override lane diagnostics.
@jdalton
John-David Dalton (jdalton) merged commit 6f0dd96 into main Dec 2, 2026
8 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/security-alerts branch December 2, 2026 18:33
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.

2 participants