Skip to content

fix(supply-chain): override the SBOM tool's undici to 7.30.2 - #425

Merged
stackbilt-admin merged 3 commits into
mainfrom
fix/sbom-tool-undici
Nov 9, 2026
Merged

stackbilt-admin merged 3 commits into
mainfrom
fix/sbom-tool-undici

Conversation

@stackbilt-admin

@stackbilt-admin stackbilt-admin commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

The Supply Chain workflow installs @cyclonedx/cdxgen 12.8.5 from the lockfile in .github/sbom/. Its package.json overrides undici to 7.29.1, and the workflow comment calls that a patched release. It isn't: undici 7.0.0 through 7.30.0 is affected by GHSA-2m5v-pch6-74hx (high, TLS certificate validation bypass) and other advisories. The first fixed release is 7.30.1.

undici 7.30.1 fixes 8 advisories in all, several of them high. npm audit --omit=optional on .github/sbom reports 1 high and 6 moderate before this change, and 0 high and 5 moderate after.

The lockfile also pins body-parser 2.3.0 (GHSA-27r3-jxmh-p828, high). It's an optional cdxgen dependency, so npm ci --omit=optional doesn't install it and the audit above doesn't count it, but dependency review checks the whole lockfile: it failed on Stackbilt-dev/llm-providers#149 for this reason. This PR overrides it to 2.4.0, the first fixed release. A full npm audit (optional dependencies included) now reports 0 high and 5 moderate.

Changes

  • .github/sbom/package.json: the undici override goes from 7.29.1 to 7.30.2, the latest 7.x, and a new override pins body-parser to 2.4.0.
  • .github/sbom/package-lock.json: regenerated with npm install --package-lock-only, and fast-uri refreshed from 3.1.8 to 3.1.9 (clearing its moderate advisory; it is within ajv's ^3.0.1 range). body-parser goes from 2.3.0 to 2.4.0. Only the undici, fast-uri and body-parser entries change, and their integrity hashes match the registry. The two tool files are now identical to llm-providers'.
  • .github/workflows/supply-chain.yml: the comment now names the advisories and the first fixed version, instead of calling 7.29.1 patched, and explains the body-parser override.
  • .github/dependabot.yml: the comment telling maintainers to review the override by hand now covers both overrides (undici at 7.30.2, body-parser at 2.4.0).

Validation

  • Installed the tool from the new lockfile with the workflow's npm ci flags; undici 7.30.2 is installed (body-parser is optional and skipped, as before).
  • Generated this repo's SBOM with it: CycloneDX with 179 components. @stackbilt/cli is recorded as a workspace package, @modelcontextprotocol/sdk is present and the generator isn't, so the workflow's verify step would pass.

Not in this PR

  • The remaining 5 moderate advisories (glob, minimatch, and @npmcli/* and cdxgen through glob) come from versions cdxgen pins exactly. cdxgen 12.9.1 pins the same glob and @npmcli/* versions, so a cdxgen bump alone won't clear them; they need overrides or a later cdxgen release.
  • Found while porting this workflow to Stackbilt-dev/llm-providers (ci: inline supply-chain workflows so they run on this public repo llm-providers#149), which copied this lockfile.

🤖 Generated with Claude Code

kovermier and others added 2 commits November 9, 2026 07:01
The pinned SBOM generator's package.json overrides undici to 7.29.1, which
the workflow comment calls patched. undici 7.0.0 through 7.30.0 is affected
by GHSA-2m5v-pch6-74hx (high) among other advisories; the first fixed
release is 7.30.1. Bump the override to 7.30.2, regenerate the lockfile
(only the undici entry changes) and correct the comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- dependabot.yml: the override now holds undici at 7.30.2, not 7.29.1.
- supply-chain.yml: the override covers several undici advisories, not one.
- Refresh fast-uri to 3.1.9 in the SBOM tool lockfile, clearing its
  moderate advisory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
….4.0

cdxgen 12.8.5 pins body-parser 2.3.0 (GHSA-27r3-jxmh-p828, high). It is an
optional dependency that `npm ci --omit=optional` skips, but dependency review
checks the whole lockfile, so a PR that touches it would fail. Matches
Stackbilt-dev/llm-providers#149.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@stackbilt-admin
stackbilt-admin merged commit 5412100 into main Nov 9, 2026
8 checks passed
@stackbilt-admin
stackbilt-admin deleted the fix/sbom-tool-undici branch November 27, 2026 23:55
stackbilt-admin added a commit that referenced this pull request Nov 28, 2026
Rename the [Unreleased] content to a [3.0.0] section with a YYYY-MM-DD
date placeholder for the release owner, add a fresh empty [Unreleased],
and add the missing entries: the Zod 4 breaking change with the
migration guide link (#310 / #413), the security pins (#404, #425), the
MCP SDK 1.32.1 -> 1.32.2 bump (b38f04a) and the fixes from #398, #399,
#400, #341, #389, #401, #402, #403, #409, #410 and #411.

Docs only; no package versions or code change.

Refs #397

Co-authored-by: Kurt Overmier <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
stackbilt-admin pushed a commit that referenced this pull request Nov 28, 2026
Add 3.0.0 entries for #453 (MCP getProjectContext task tokenizer parity,
adf context --bundle path fix; #438, #439), #454 (live ceiling headroom in
adf context --files; #443), #382 (publish:check on Windows) and #385
(Dependabot covers the pinned SBOM generator).

Apply the #456 review nits: drop the two stray blank lines that made the
Changed list loose, and note that #425 also updated the supply-chain
workflow and dependabot.yml comments.

The 3.0.0 date placeholder is left for the release owner.

Refs #397

Co-Authored-By: Claude Opus 5.5 <[email protected]>
stackbilt-admin added a commit that referenced this pull request Nov 28, 2026
Add 3.0.0 entries for #453 (MCP getProjectContext task tokenizer parity,
adf context --bundle path fix; #438, #439), #454 (live ceiling headroom in
adf context --files; #443), #382 (publish:check on Windows) and #385
(Dependabot covers the pinned SBOM generator).

Apply the #456 review nits: drop the two stray blank lines that made the
Changed list loose, and note that #425 also updated the supply-chain
workflow and dependabot.yml comments.

The 3.0.0 date placeholder is left for the release owner.

Refs #397

Co-authored-by: Kurt Overmier <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants