Skip to content

fix(deps): resolve patched undici and source-map-js in the consumer UI lockfile - #22

Merged
ecv merged 1 commit into
mainfrom
polylane/autofix/9l3fdml7vxko
Nov 9, 2026
Merged

ecv merged 1 commit into
mainfrom
polylane/autofix/9l3fdml7vxko

Conversation

@polylane

@polylane polylane Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The consumer UI build installs two packages at versions that open security advisories cover, so the repository keeps showing vulnerability alerts against its lockfile. The automated dependency bot cannot change a package that only the lockfile holds, so a person has to move it by hand. After this change the build resolves the patched releases for both packages and the alerts close.

flowchart LR
  A["postcss 8.5.28 asks source-map-js ^1.2.1"] --> B["source-map-js 1.2.1 inside advisory"]
  C["@module-federation/dts-plugin 2.9.2 asks undici 7.29.1 exactly"] --> D["undici 7.29.1 inside advisory"]
  B --> E["built dist/ bundle"]
  D --> F["build tooling only"]
  E --> G["production Node server serve.ts imports only node builtins"]
  H["overrides block in ui/consumer/package.json"] -->|forces| I["source-map-js 1.2.2"]
  H -->|forces| J["undici 7.30.1"]
  B -.replaces.-> I
  D -.replaces.-> J
Loading
Detection evidence

Affected: int_17ad4b457001o98datdn4tkm

Why this fix

The consumer UI lockfile resolved undici 7.29.1 and source-map-js 1.2.1. Six open alerts cover those two versions, and a patched release exists for each. Both packages reach the tree only through build tooling, so the deployed plugin never runs them. Two override entries move each copy to its patched release inside the same major version, and no other package in the tree moved.

Fix walkthrough

Watch the fix walkthrough

Watch the fix explained (1:24). Recorded for commit 590ffae3dc436ebb24893ebbbe79f28c8b8211bb.

Out of scope
  • Adding the shared vulnerability scan workflow to this repository's CI: that adds a new required gate, and closing these alerts does not depend on it.

Production impact

Consumer UI lockfile keeps only a build-time dependency change

The repository node datum-cloud/interconnect has no recorded deploys_to edge, and the deployment interconnect-consumer-ui-plugin is not yet indexed because the datum-cloud-prod and infrastructure-control-plane-staging accounts are still syncing, so I could not read its production traffic. The change moves two build-tooling packages inside their existing major versions; the production server imports only Node builtins, the run image copies only dist/ and the server file, and the built bundle holds no reference to either package.

Checked and not affected (1)
  • interconnect

Observability

  • npm run build output in the CI job for ui/consumer shows the plugin bundle compiling, which is the build step these packages belong to.
  • The GitHub Dependabot alert list for ui/consumer/package-lock.json is the signal that shows the fix landed; it clears when the resolved versions move past each advisory range.
  • No new signal is added: this change moves dependency versions and adds no code path.

Polylane assessed this pull request at 590ffae.

Causal chain
  • Signal (alert): Dependabot alerts on ui/consumer/package-lock.json: undici 7.29.1 and source-map-js 1.2.1 inside open advisory ranges
  • Surfacing site: datum-cloud/interconnect at GitHub Dependabot alert, manifest path ui/consumer/package-lock.json
  • Mechanism: The lockfile resolved undici to 7.29.1, which @module-federation/dts-plugin 2.9.2 pins exactly, and source-map-js to 1.2.1, which postcss 8.5.28 admits through ^1.2.1. Both resolved versions fall inside an open advisory range, so six Dependabot alerts stay open.
  • Producer: ui/consumer dependency manifest, at datum-cloud/interconnect:ui/consumer/package-lock.json
  • Trigger: GitHub Dependabot re-read the lockfile after commit 324ec9c moved the consumer UI onto a Node server, and the advisories published on 2026-09-18 and 2026-10-23 to 2026-10-27 cover the resolved versions.
  • What happens to the failed unit today: ui/consumer installs with npm ci in CI (.github/workflows/ci.yaml calls datum-cloud/actions ci-basic.yaml for path ui/consumer), which honors the lockfile and the overrides block.
  • Cadence check: All six alerts stay open from 2026-11-02 21:47Z, when they were created, through this read on 2026-11-05; none is fixed or dismissed.
  • Blast radius: unknown other resource(s), unknown other tenant(s); data at risk: No production data or runtime request path is at risk: both packages are build-time only and the container holds no node_modules.
  • Producer evidence:
    • ui/consumer/package-lock.json: node_modules/undici version 7.29.1, dev: true, requested as 7.29.1 by node_modules/@module-federation/dts-plugin 2.9.2.
    • ui/consumer/package-lock.json: node_modules/source-map-js version 1.2.1, dev: true, requested as ^1.2.1 by node_modules/postcss 8.5.28.
    • GitHub Dependabot alerts API, 2026-11-05: six open alerts on manifest_path ui/consumer/package-lock.json, scope development, relationship transitive, each with first_patched_version set (undici 7.30.1, source-map-js 1.2.2).
    • ui/consumer/serve.ts imports only node builtins and the Dockerfile runner stage copies only dist/ and serve.ts, so no production path loads either vulnerable package.
2 files changed (+10/-6)
  • ui/consumer/package-lock.json: modified, +6/-6
  • ui/consumer/package.json: modified, +4/-0

View autofix


Generated by Polylane. You can ask follow-ups by mentioning @polylane in a comment.

Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
@polylane polylane Bot added polylane severity:medium Polylane autofix severity: medium labels Nov 5, 2026
@polylane
polylane Bot requested a review from ecv November 5, 2026 05:16
@cla-assistant

cla-assistant Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ecv ecv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve.

Lockfile-only security bumps in the consumer UI: undici 7.29.1 to 7.30.1 and source-map-js 1.2.1 to 1.2.2, both dev-only and both published, forced through an overrides block because @module-federation/dts-plugin pins undici exactly. The ci / Build and test job installs and builds ui/consumer with the overrides and passes.

  • Both are patch or minor moves within the same major, and only build tooling loads them; the served bundle and serve.ts don't.

Follow-ups:

  • Drop the overrides entries once @module-federation/dts-plugin and postcss resolve the patched versions on their own, or they will hold these packages back from later majors.
  • license/cla is pending because the authoring app has not signed; the merge needs that settled.

@ecv
ecv merged commit 53c27f5 into main Nov 9, 2026
3 checks passed
@ecv
ecv deleted the polylane/autofix/9l3fdml7vxko branch November 9, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

polylane severity:medium Polylane autofix severity: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants