Repository navigation
Fix Component Governance, Bandit, and Intel macOS .NET warnings in CI - #295
Draft
Vladimir Morozov (vmoroz) wants to merge 5 commits into
Draft
Vladimir Morozov (vmoroz) wants to merge 5 commits into
Vladimir Morozov (vmoroz) wants to merge 5 commits into
Conversation
minimatch 10.2.6 is embedded in libnode (fs.glob, path.matchesGlob, and fs.watch ignore patterns) and is affected by CVE-2026-118764 (GHSA-g3hv-75wg-m249, fixed in 11.0.1). Apply the deps/minimatch part of nodejs/node#67713 (v26.x backport, head 8ace5004061), without the pruned package-lock.json. lib/ needs no change: the 11.x API used by lib/internal/fs/glob.js and watchers.js is unchanged. Record the version floor in sync-instructions.md so a fork-sync keeps it until upstream v26.x ships 11.0.9 or later, and add a glob check to the LibNode smoke features so every packaged RID exercises the new bundle.
Each crate vendored under deps/crates/vendor kept the Cargo.lock it was published with, which pins that crate's own dev/test dependency graph (reqwest, rustls, ring, aws-lc-sys, quinn, tar, ...). Cargo ignores a dependency's lockfile and builds node_crates from the root deps/crates/Cargo.lock, which is unchanged, so these files are not build inputs. Component Governance on macOS and Linux reads them, however, and reports those test-only crates as shipped components with security alerts. Delete the 34 nested lockfiles and add a .syncignore rule so fork-sync keeps them out. The vendored sources' .cargo-checksum.json files list no files, and cargo metadata/tree/build with --offline --locked resolve the same 45 crates for all six targets.
The Intel macos-15 hosted image ships .NET SDKs and runtimes that predate the CVE-2026-111497 (Brotli) fixes, and the smoke's framework-dependent .NET consumer ran on that image's runtime. Install the latest .NET 10 SDK with UseDotNet@2 on that job only, and have the consumer print the runtime it runs on so the log shows the version actually loaded. The Apple silicon image already carries patched .NET.
The 19 Bandit baselines expired on 2026-11-04. One matches a file that is no longer in the tree. The other 18 are B102 (exec) and B303 (MD5/SHA-1) findings in vendored build-time tools: Jinja2 copies used by the inspector protocol and V8 code generators, and V8 developer scripts. Each was re-reviewed against the current code and is now an individual suppression with its own justification. The expired baselines are removed, so new Bandit findings still surface.
The Full-Node inputs list does not include deps/crates, so state the Cargo.lock pruning separately instead of as an exception to that list.
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.
Why
Recent CI runs on main report a Component Governance alert for the bundled minimatch (CVE-2026-118764), Critical alerts for
webpki-roots,webpki-root-certs, andrustls-webpkithat come only from test-only lockfiles inside vendored Rust crates, 18 expired Guardian Bandit baselines, and vulnerable .NET versions preinstalled on the Intel macOS image that runs the LibNode .NET smoke test. This change fixes the causes that live in this repository and leaves the rest with their owners.What
Bundled minimatch 11.0.9.
deps/nodejs/deps/minimatchmoves from 10.2.6 to 11.0.9, the version in nodejs/node#67713, which fixes CVE-2026-118764. Upstream v26.x has not landed it yet, sosync-instructions.mdrecords when to drop our copy. The LibNode smoke test gains aglob matchingcheck (fs.globSync,path.matchesGlob), which exercises minimatch in both the C and .NET consumers on every platform.Vendored crate lockfiles. The 34
Cargo.lockfiles insidedeps/crates/vendor/*pin each crate's own dev and test dependencies. Cargo ignores them and buildsnode_cratesfromdeps/crates/Cargo.lock, but dependency scanners on macOS and Linux inventoried them as shipped, which added hundreds of unshipped crate versions and the Criticalwebpki/rustlsalerts. They are removed, and.syncignorekeeps fork-sync from restoring them. The 45 shipped crates and the root lockfile are unchanged, and builds still use--locked.Bandit: suppressions instead of expired baselines. Each of the 18 Bandit findings (SHA-1 cache keys and
execin vendored Jinja2 and V8 developer tooling, none of it shipped) is now an individually justified entry in.ado/guardian/sdl/.gdnsuppress, and the expired entries are removed fromguardian_baselines.gdnbaselines. Any new Bandit finding still fails the scan.Patched .NET for the Intel macOS smoke. The osx-x64 smoke job installs the current .NET 10 SDK with
UseDotNet@2before it runs, and the .NET consumer prints the runtime it ran on. The vulnerable SDKs and runtimes preinstalled on the hosted image still produce pre-job warnings until the image is updated.Testing
Exercised through CI on a test branch: all six LibNode builds, embedding tests, packages, and C and .NET smoke tests pass, Guardian reports no active or expired Bandit results, and the Intel macOS .NET smoke runs on .NET 10.0.15. Still being checked on the latest run, after a documentation-only change: the completed Component Governance alert results, and failures in the win-x64 and win-arm64 sandbox build jobs, which passed on the previous run of the same code.
Changelog
Should this change be included in the release notes: no
Updates the bundled minimatch to 11.0.9 (CVE-2026-118764) in Microsoft.JavaScript.LibNode.
Microsoft Reviewers: Open in CodeFlow