Skip to content

fix(deps): resolve high and moderate Dependabot alerts - #138

Merged
emmanuelnk merged 1 commit into
mainfrom
fix/deps-dependabot-high-moderate
Sep 8, 2026
Merged

emmanuelnk merged 1 commit into
mainfrom
fix/deps-dependabot-high-moderate

Conversation

@emmanuelnk

Copy link
Copy Markdown
Owner

Problem. Dependabot reports 7 high and 12 moderate open alerts. All are transitive dependencies pulled in by Docusaurus, webpack-dev-server, Jest, or ESLint, so none can be fixed by bumping a direct dependency alone.

Solution. Follow the approach from #125: add pnpm overrides in the root package.json that force each vulnerable package to its first patched version, capped below the next major so no override introduces a breaking upgrade. Docusaurus also moves from 3.10.1 to 3.10.2. Two high alerts for image-size remain open because the maintainers have not published a fixed release; there is nothing to override to.

What to look at.

  • package.json: the new override entries. The existing fast-uri override is tightened from 3.1.5 to 3.1.6 to cover four newer advisories.
  • uuid is forced from 8.x to 11.x for sockjs. sockjs only calls v4(), which uuid 11 still exports through CommonJS. Verified by requiring uuid from sockjs's resolution path and calling it.
  • AGENTS.md: short note documenting the override convention for future alerts.

Test Plan.

  • pnpm install, pnpm build, and pnpm test pass across all packages.
  • pnpm --filter docs build succeeds, which exercises webpack-dev-server, @swc/html, joi, and the other Docusaurus-side overrides.
  • pnpm audit --audit-level moderate reports only the two image-size advisories.
  • Remaining alerts after merge: image-size (high, no fix available) and four low-severity alerts left out of scope.

Add pnpm overrides for vulnerable transitive dependencies (browserslist,
fast-uri, @humanfs/node, @swc/html, http-proxy-middleware, joi,
launch-editor, markdown-it, qs, uuid, webpack-dev-server) and bump
Docusaurus to 3.10.2. image-size remains open because no patched
release exists.
@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
github-actions-workflow-ts Ready Ready Preview Sep 8, 2026 7:24pm UTC

@github-actions github-actions Bot added the bug Something isn't working label Sep 8, 2026
@emmanuelnk
emmanuelnk merged commit 2af61e6 into main Sep 8, 2026
11 checks passed
@emmanuelnk
emmanuelnk deleted the fix/deps-dependabot-high-moderate branch September 8, 2026 19:29

This branch was successfully deployed

1 active deployment
Preview — e3a01df3 Deployed Sep 8, 2026 by vercel[bot]
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