Skip to content

build(deps): override glob and minimatch for the new advisories (dev tooling only) - #1407

Merged
nc9 merged 1 commit into
mainfrom
fix/audit-glob-minimatch-dev-tooling
Oct 31, 2026
Merged

nc9 merged 1 commit into
mainfrom
fix/audit-glob-minimatch-dev-tooling

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Dependency audit fails on every PR: bun audit (bun 1.4.4 on CI) reports two new moderate advisories.

Advisory Package Fixed in
GHSA-3g3m-2fjr-6pw4 (AbortSignal cancellation bypass) glob 13.0.6 (>=9.0.0 <=14.0.1) 14.0.2
GHSA-g3hv-75wg-m249 (globparts DoS) minimatch 10.2.5 and 3.1.5 (<11.0.1) 11.0.1

Where they come from

All dev tooling, nothing in the shipped CLI binary (no src/ import of either package):

  • glob: ultracite (devDependency of the cli and synthetic-site) and docs tangly > @astrojs/vercel > @vercel/nft.
  • minimatch: eslint > @eslint/config-array via eslint-plugin-sonarjs, eslint-plugin-github, ultracite (cli lint toolchain), plus the docs chain above and the old eslint-plugin-import / jsx-a11y copies.

Fix

A real fix, not an ignore: root overrides glob ^14.0.2 and minimatch ^11.0.1. Both cross a major, which is acceptable here because the consumers are lint and docs-build tooling; the diff is package.json plus the matching bun.lock change (the workspace version line in the lock is left as it was).

Checked locally

  • bun install --frozen-lockfile clean.
  • bun run audit:dependencies (the CI script, same ignore list): no vulnerabilities, 6 ignored.
  • cli bun run lint (oxlint with the sonarjs plugin) and bun run typecheck clean; docs make validate and bun run build pass (the docs deploy uses wrangler, not the Vercel adapter that pulls @vercel/nft).
  • A couple of workspace smoke tests by path pass.

No CHANGELOG entry: dev-only. No runtime dependency changes. Skill: no change.

…e new advisories (dev tooling only)

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review October 31, 2026 01:20
@nc9
nc9 merged commit 5387823 into main Oct 31, 2026
18 checks passed
@nc9
nc9 deleted the fix/audit-glob-minimatch-dev-tooling branch October 31, 2026 01:20
@claude

claude Bot commented Oct 31, 2026

Copy link
Copy Markdown

Review of the glob and minimatch overrides in package.json and bun.lock. I read the diff only and did not run anything.

  • (medium) package.json: the minimatch ^11.0.1 override also forces 3.x consumers (@eslint/eslintrc, eslint-plugin-import, eslint-plugin-jsx-a11y) onto 11.x, a jump of eight majors. These plugins require('minimatch') and use it as a callable function or new Minimatch. Newer minimatch versions export { minimatch } and are ESM-first. The bun install and oxlint checks in the PR description would not catch this, because those plugins are probably never loaded at lint time. If anything in the repo or a contributor's editor runs ESLint with those plugins, it could fail at load time. Please check that, for example by running bun -e "require('eslint-plugin-import')" or loading the ultracite eslint config. If they do break, scope the override to the @eslint/config-array path that carries the advisory, or accept the break and say so in the PR.
  • (low) package.json: the override applies to every workspace, including docs. The docs build is only said to be checked with bun run build, so a glob 14 or path-scurry 3 engine requirement could still affect @vercel/nft users. Check that the engines fields of glob@14 and path-scurry@3 fit the Node and Bun versions CI uses.
  • (nit) package.json: the two new keys are placed before @ai-sdk/... and break the sorted order of overrides. Move them into alphabetical position.

Nothing else stands out. The lockfile change is limited to the expected removals and bumps, the PR touches no runtime src/, and it adds no new tests, which is reasonable for a dev-tooling bump.

🤖 Generated with Claude Code

@claude

claude Bot commented Oct 31, 2026

Copy link
Copy Markdown

Review of #1407. The change is small and CI is green, including Dependency audit.

  • (low) package.json overrides: the global minimatch ^11 also replaces the 3.x copies that eslint-plugin-import, eslint-plugin-jsx-a11y and @eslint/eslintrc ask for. minimatch 3 exported a callable default, and 10+ uses named exports, so any code that does require('minimatch')(...) will fail at runtime. Nothing in the repo appears to run eslint (lint is oxlint), so this should be harmless. If someone later enables those eslint plugins, expect a confusing "minimatch is not a function" error. A comment or a follow-up note that the overrides are for dev tooling only would help.
  • (nit) The new overrides sit at the top of the object, ahead of the alphabetized entries. Moving them into sorted position would keep the diff and later merges tidy.
  • (nit) Overrides never expire on their own. Consider dropping them once ultracite and @vercel/nft ship patched ranges.

No runtime or CLI-binary impact. The lockfile changes are consistent with the overrides and the dev-only scope in the description. No CHANGELOG entry is fine for a dev-only change.

🤖 Generated with Claude Code

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