Skip to content

fix(deps): resolve critical and high Dependabot alerts - #125

Merged
emmanuelnk merged 1 commit into
mainfrom
fix/dependabot-criticals-highs
Aug 11, 2026
Merged

fix(deps): resolve critical and high Dependabot alerts#125
emmanuelnk merged 1 commit into
mainfrom
fix/dependabot-criticals-highs

Conversation

@emmanuelnk

Copy link
Copy Markdown
Owner

Problem

24 open critical/high Dependabot alerts, all in pnpm-lock.yaml: 2 criticals (shell-quote, websocket-driver) and highs across brace-expansion, fast-uri, js-yaml, linkify-it, nanoid, postcss, serialize-javascript, svgo, and ws. Nearly all are transitive deps of the docusaurus/jest toolchains, so pnpm update can't reach them — their parents pin vulnerable versions.

Solution

  • js-yaml is a runtime dependency of cli and actions, so the floor is bumped to ^4.3.1 in their package.json — consumers get the patched version regardless of our lockfile.
  • Everything else is fixed with pnpm.overrides (the existing micromatch pattern). Overrides are range-capped to stay within the major each parent expects (e.g. ws@>=7 <7.5.11 → >=7.5.11 <8), so nothing jumps a major except serialize-javascript (6.0.2 → 7.x): 6.x has no patched release, and its only consumers here are webpack plugins in the docs build calling serialize(), whose API is unchanged — verified by the docs build passing.
  • postcss is overridden to >=8.5.23 which also clears its medium alert at no extra cost.

Not fixed: image-size (2 high alerts, GHSA-5p2g-fcmc-qvqq / CVE-2025-71329). No patched release exists — latest is 2.0.2 and the advisory has no fix version. DoS-only (infinite loop parsing JXL/HEIF), used only at docs build time. Recommend dismissing those two alerts as 'no patch available' until upstream ships a fix.

Test Plan

Full pnpm build (including the docusaurus/webpack docs build that exercises serialize-javascript 7, svgo 3.3.4, postcss 8.5.26) and all 302 tests pass locally.

🤖 Generated with Claude Code

Bumps js-yaml to the patched 4.3.1 floor in cli/actions (runtime dep, so
consumers get the fix too) and adds pnpm overrides for the transitive
dependencies whose parents pin vulnerable versions, following the existing
micromatch override pattern. Overrides are capped to the parent's expected
major except serialize-javascript, where 6.x has no patched release and
its webpack-plugin consumers only call serialize().

Not addressed: image-size (GHSA-5p2g-fcmc-qvqq) has no patched release.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-actions-workflow-ts Ready Ready Preview Aug 11, 2026 8:51pm

@github-actions github-actions Bot added the bug Something isn't working label Aug 11, 2026
@emmanuelnk
emmanuelnk merged commit b1a54b0 into main Aug 11, 2026
9 checks passed
@emmanuelnk
emmanuelnk deleted the fix/dependabot-criticals-highs branch August 11, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant