Skip to content

Update mermaid to clear the lodash-es Dependabot alerts - #1260

Merged
willeastcott merged 1 commit into
mainfrom
chore/fix-dependabot-alerts
Oct 2, 2026
Merged

willeastcott merged 1 commit into
mainfrom
chore/fix-dependabot-alerts

Conversation

@willeastcott

@willeastcott willeastcott commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lockfile only. This updates mermaid from 12.0.0 to 12.1.0, within @docusaurus/theme-mermaid's >=11.6.0 range. Mermaid 12.1 moves to chevrotain 13, which no longer pins lodash-es to exactly 4.17.23, so lodash-es resolves to 4.18.1. That clears the two lodash-es Dependabot alerts (one high, one medium). The dompurify alert was already fixed by #1259.

Remaining alerts

The other three can't be fixed without package.json overrides until Docusaurus updates its dependencies. Neither package reaches the published site:

  • serialize-javascript 6.0.2 (one high, one medium): Docusaurus 3.10 pins copy-webpack-plugin ^11 and css-minimizer-webpack-plugin ^5. They use it at build time only, to serialize our own webpack cache keys.
  • uuid 8.3.2 (medium): it comes through webpack-dev-server 5 → sockjs 0.3.24, which hasn't had a release since 2023. It's only used by the local dev server, which uses ws by default and doesn't load sockjs. Even if it did, sockjs only calls uuid.v4() without a buffer, so it never reaches the vulnerable code.

Testing

  • npm test (52 pass)
  • npm run build succeeds for en and ja with no warnings
  • The Mermaid diagram on the Splat Rendering Architecture page renders, with no new console errors
  • npm audit now reports only the serialize-javascript and uuid advisories

🤖 Generated with Claude Code

Update dompurify to 3.4.16, and mermaid to 12.1.0, whose chevrotain 13 no
longer pins lodash-es 4.17.23, so lodash-es resolves to 4.18.1. Lockfile
only: both are within the existing ranges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@willeastcott
willeastcott force-pushed the chore/fix-dependabot-alerts branch from 8d98c71 to ebac04d Compare October 2, 2026 13:06
@willeastcott willeastcott changed the title Resolve the open Dependabot alerts Update mermaid to clear the lodash-es Dependabot alerts Oct 2, 2026
@willeastcott
willeastcott merged commit 0b2677c into main Oct 2, 2026
4 checks passed
@willeastcott
willeastcott deleted the chore/fix-dependabot-alerts branch October 2, 2026 13:09

This branch was successfully deployed

1 active deployment
Preview — ebac04dc Deployed Oct 2, 2026 by vercel[bot]
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