Skip to content

The code toolchains resolve glob 14.0.6, and three development locks resolve minimatch 11.0.10 - #2366

Merged
zlareb1 merged 2 commits into
mainfrom
fix/dependabot-glob-minimatch
Dec 6, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/dependabot-glob-minimatch

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The code toolchains that the server image and scripts/install-code-toolchains.sh install resolve glob 14.0.6 and minimatch 11.0.10 in place of glob 7.2.3 and minimatch 3.1.5 (GHSA-c6wh-w8c3-cv3g); scip-python runs unchanged. A native server drops glob 7.2.3 when sh scripts/install-code-toolchains.sh runs again.

Why

Four locks still resolve vulnerable versions: two CI tool locks, the n8n package's development lock, and the code toolchains lock that the image and scripts/install-code-toolchains.sh install. These are the four open Dependabot alerts, and the same two advisories fail Scorecard's Vulnerabilities check:

  • minimatch 11.0.6 to 11.0.9 (GHSA-3924-r96c-gp9w, fixed in 11.0.10): integrations/n8n and .github/sdk-docs through their pnpm overrides, and .github/ts-api-report through its npm override.
  • glob 7.2.3 (GHSA-c6wh-w8c3-cv3g, fixed in 14.0.6 only) in scripts/code-toolchains, which the image installs. @sourcegraph/scip-python declares glob ^7.2.0, but its webpack bundle requires only Node built-ins and never loads the installed glob. An npm override in scripts/code-toolchains/package.json, scoped to @sourcegraph/scip-python so it cannot reach a later toolchain that calls glob 7's API, moves its glob to 14.0.6 and therefore drops glob 7, minimatch 3 and their old helpers from the lock without changing what scip-python runs. The bundle carries its own copy of glob 7 in dist/vendor.js, which no override reaches. Its only caller is the bundled rimraf, which passes nosort and silent but no ignore, the option the advisory covers. tmp calls that rimraf only for a directory made with unsafeCleanup, and pyright's one tmp.dirSync({ prefix: "pyright" }) does not set it, so indexing never reaches the bundled glob. The latest scip-python, 0.6.8, still declares glob ^7.2.0.

The pnpm override keys now end at the fixed version, minimatch@>=7 <11.0.10, the same form as the glob override in integrations/n8n. The pnpm locks were regenerated with pnpm 10.34.9 and formatted with the repository's Prettier. The npm locks were regenerated with npm 11.21.3, which also rewrites the API report lock's stale name to its directory name.

Scope and risk

Two CI tool locks, the n8n package's development lock, and the code toolchains lock, whose packages (scip-python, scip-typescript, pnpm, yarn, bun) the server image installs. In that lock, glob 14.0.6 brings minimatch 11.0.10, minipass, path-scurry, lru-cache and @isaacs/nonrecursive-glob-match, moves brace-expansion from 1.1.22 to 5.1.2 and balanced-match from 1.0.2 to 4.0.4, and removes the seven packages that glob 7 alone used. No server or SDK code changes. The minimatch copies below 7 that stay (3.1.5 under eslint in integrations/n8n) are outside GHSA-3924-r96c-gp9w, which affects 11.0.6 to 11.0.9 only.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: the image needs none. A native server keeps its installed toolchain until sh scripts/install-code-toolchains.sh runs again from the upgraded checkout; nothing breaks before then, but a scanner keeps reporting glob 7.2.3 under var/code-toolchains.
  • Rollback: reverting leaves nothing behind.

Tests

  • npm audit --package-lock-only reports 0 vulnerabilities for scripts/code-toolchains and .github/ts-api-report. pnpm audit reports none for .github/sdk-docs. For integrations/n8n it reports only GHSA-mrhx-c7xc-m3w5 (zod), which that directory's osv-scanner.toml already ignores.
  • npm ci of scripts/code-toolchains into a clean prefix: npm ls shows glob@14.0.6 overridden with minimatch@11.0.10. scip-python --version prints 0.6.6, and scip-python index wrote an index for a two-file Python project.
  • The sdk-typescript job's npm run docs builds the SDK docs, whose patched typedoc calls minimatch, against 11.0.10.
  • The n8n check job (pnpm install --frozen-lockfile, then build, lint and test) and the TypeScript API report job (npm ci, then api-extractor) pass at this head on the new locks.
  • docker-smoke passed at this head (run 47626906320, amd64 and arm64): it builds the image with this lock and indexes a Python fixture through the image's scip-python.
  • npm 10.9.2, from the npm 10 line that Node 22 bundles for native installs, runs the same npm ci with the nested override: npm ls shows glob@14.0.6 overridden with minimatch@11.0.10.
  • No unit test checks these locks; the audits, the npm ci runs and the CI jobs above are their evidence. The unit tests near these areas (test_node_native_bindings, test_typescript_dependency_preparation, test_n8n_archive, test_course_starter, test_public_copy, of which only test_public_copy reads changed files: the seven manifests and locks other than the n8n lock, which it skips as dependency metadata): 127 passed.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I checked by hand that the scip-python bundle requires only Node built-ins, that its tmp reaches rimraf only with unsafeCleanup, and the npm ci and indexing runs under Tests.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the four locks.
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. (No migration.)
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. (No plugin file.)
  • The frontend builds and its tests pass, if frontend/ changed. (Not changed.)
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

🤖 Generated with Claude Code

The n8n and SDK docs pnpm overrides and the API report npm override
move minimatch to 11.0.10 (GHSA-3924-r96c-gp9w). The code toolchains
lock overrides glob to 14.0.6 (GHSA-c6wh-w8c3-cv3g): scip-python
declares glob ^7.2.0 but its bundle never loads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 6, 2026 8:17am UTC
loom-telemetry Ready Ready Preview Dec 6, 2026 8:17am UTC

Request Review

@zlareb1 zlareb1 changed the title Development npm locks resolve glob 14.0.6 and minimatch 11.0.10 The image's code toolchains and the CI npm locks resolve glob 14.0.6 and minimatch 11.0.10 Dec 6, 2026
@zlareb1 zlareb1 changed the title The image's code toolchains and the CI npm locks resolve glob 14.0.6 and minimatch 11.0.10 The image's code toolchains and the development locks resolve glob 14.0.6 and minimatch 11.0.10 Dec 6, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@zlareb1 zlareb1 changed the title The image's code toolchains and the development locks resolve glob 14.0.6 and minimatch 11.0.10 The code toolchains resolve glob 14.0.6, and three development locks resolve minimatch 11.0.10 Dec 6, 2026
@zlareb1
zlareb1 merged commit 924fdfc into main Dec 6, 2026
91 of 93 checks passed
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