Repository navigation
The code toolchains resolve glob 14.0.6, and three development locks resolve minimatch 11.0.10 - #2366
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
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.shinstall 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 whensh scripts/install-code-toolchains.shruns 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.shinstall. These are the four open Dependabot alerts, and the same two advisories fail Scorecard'sVulnerabilitiescheck:integrations/n8nand.github/sdk-docsthrough their pnpm overrides, and.github/ts-api-reportthrough its npm override.scripts/code-toolchains, which the image installs.@sourcegraph/scip-pythondeclaresglob ^7.2.0, but its webpack bundle requires only Node built-ins and never loads the installedglob. An npm override inscripts/code-toolchains/package.json, scoped to@sourcegraph/scip-pythonso 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 indist/vendor.js, which no override reaches. Its only caller is the bundled rimraf, which passesnosortandsilentbut noignore, the option the advisory covers. tmp calls that rimraf only for a directory made withunsafeCleanup, and pyright's onetmp.dirSync({ prefix: "pyright" })does not set it, so indexing never reaches the bundled glob. The latest scip-python, 0.6.8, still declaresglob ^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 inintegrations/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 stalenameto 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
sh scripts/install-code-toolchains.shruns again from the upgraded checkout; nothing breaks before then, but a scanner keeps reporting glob 7.2.3 undervar/code-toolchains.Tests
npm audit --package-lock-onlyreports 0 vulnerabilities forscripts/code-toolchainsand.github/ts-api-report.pnpm auditreports none for.github/sdk-docs. Forintegrations/n8nit reports only GHSA-mrhx-c7xc-m3w5 (zod), which that directory'sosv-scanner.tomlalready ignores.npm ciofscripts/code-toolchainsinto a clean prefix:npm lsshowsglob@14.0.6 overriddenwithminimatch@11.0.10.scip-python --versionprints 0.6.6, andscip-python indexwrote an index for a two-file Python project.sdk-typescriptjob'snpm run docsbuilds the SDK docs, whose patched typedoc calls minimatch, against 11.0.10.checkjob (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.npm ciwith the nested override:npm lsshowsglob@14.0.6 overriddenwithminimatch@11.0.10.npm ciruns 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 onlytest_public_copyreads 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 thenpm ciand indexing runs under Tests.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.main; no merged migration is edited. (No migration.)frontend/changed. (Not changed.)docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code