Skip to content

Fix Component Governance, Bandit, and Intel macOS .NET warnings in CI - #295

Draft
Vladimir Morozov (vmoroz) wants to merge 5 commits into
microsoft:mainfrom
vmoroz:PR/ci-warnings-2026-11-23
Draft

Vladimir Morozov (vmoroz) wants to merge 5 commits into
microsoft:mainfrom
vmoroz:PR/ci-warnings-2026-11-23

Conversation

@vmoroz

@vmoroz Vladimir Morozov (vmoroz) commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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, and rustls-webpki that 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/minimatch moves 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, so sync-instructions.md records when to drop our copy. The LibNode smoke test gains a glob matching check (fs.globSync, path.matchesGlob), which exercises minimatch in both the C and .NET consumers on every platform.

Vendored crate lockfiles. The 34 Cargo.lock files inside deps/crates/vendor/* pin each crate's own dev and test dependencies. Cargo ignores them and builds node_crates from deps/crates/Cargo.lock, but dependency scanners on macOS and Linux inventoried them as shipped, which added hundreds of unshipped crate versions and the Critical webpki/rustls alerts. They are removed, and .syncignore keeps 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 exec in 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 from guardian_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@2 before 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

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.
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