Skip to content

fix(deps): override transitive dependencies to non-vulnerable versions - #63

Open
NiKrause wants to merge 1 commit into
mainfrom
fix/dependabot-security-overrides
Open

fix(deps): override transitive dependencies to non-vulnerable versions#63
NiKrause wants to merge 1 commit into
mainfrom
fix/dependabot-security-overrides

Conversation

@NiKrause

Copy link
Copy Markdown
Owner

Fixes the failing Dependabot Updates runs (#84#91 and older).

Why Dependabot cannot fix these itself

Every run fails with security_update_not_possible and an empty conflicting-dependencies list:

"dependency-name": "dompurify",
"latest-resolvable-version": "3.4.3",
"lowest-non-vulnerable-version": "3.4.12"

All 15 packages are transitive (mostly via the Docusaurus site) and capped by their parents' version ranges, so there is no direct dependency for Dependabot to bump. The fix has to be a resolution override.

Change

Pin all 31 open alerts through pnpm.overrides:

body-parser 1.20.6 · brace-expansion@1 1.1.16 · dompurify 3.4.12 · esbuild 0.28.1 · fast-uri 3.1.4 · http-proxy-middleware@2 2.0.10 · joi 17.13.4 · js-yaml@3 3.15.0 · js-yaml@4 4.3.0 · launch-editor 2.14.1 · shell-quote 1.9.0 · svgo 3.3.4 · uuid 11.1.1 · webpack-dev-server 5.2.6 · websocket-driver 0.7.5 · ws ^8.20.1 → ^8.21.0

Scoped overrides where two major lines coexist — a blanket override would have forced one major onto consumers of the other:

  • js-yaml: both 3.14.2 and 4.1.1 are in the tree
  • brace-expansion@1, http-proxy-middleware@2

Verification

  • pnpm install resolves every listed package to a patched version (checked against the lockfile).
  • pnpm -r build succeeds — including the Docusaurus site, which is where most of these deps live.
  • All package tests pass: core 102, browser 45, rootfs 50, playwright 26, ui 18, node 84, aleph-bootstrap 18, shared-types 3.

🤖 Generated with Claude Code

Dependabot could not open security PRs for 15 packages, failing every run
with `security_update_not_possible` and an empty `conflicting-dependencies`
list, e.g.:

    "dependency-name": "dompurify",
    "latest-resolvable-version": "3.4.3",
    "lowest-non-vulnerable-version": "3.4.12"

All of them are transitive (mostly via the Docusaurus site) and capped by
their parents' ranges, so Dependabot has nothing it can bump on its own.
Pin them through pnpm overrides instead, covering the 31 open alerts.

Packages that exist in more than one major line are scoped so the other
line is left untouched:
- js-yaml@3 and js-yaml@4 (both are in the tree)
- brace-expansion@1, http-proxy-middleware@2

`ws` moves from ^8.20.1 to ^8.21.0 for the remaining advisory.

Verified: pnpm install resolves every package to a patched version, the
full build succeeds including the Docusaurus site, and all package tests
pass (core 102, browser 45, rootfs 50, playwright 26, ui 18, node 84,
aleph-bootstrap 18, shared-types 3).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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