fix(website): resolve npm audit vulnerabilities and upgrade Docusaurus to 3.10.1#1375
Merged
Merged
Conversation
…s to 3.10.1 - Add npm overrides for serialize-javascript (>=7.0.5, fixes GHSA-5c6j-r48x-rmvq RCE and GHSA-qj8w-gfj5-8c6v DoS) and uuid under sockjs (>=11.1.1, fixes GHSA-w5hq-g745-h8pq), clearing all 22 audit findings - Upgrade @docusaurus/* 3.9.2 -> 3.10.1 - Add @docusaurus/faster, required by future.v4 in Docusaurus 3.10
231a69f to
bcad1e6
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the website’s Docusaurus stack to address npm audit findings by upgrading Docusaurus to 3.10.1 and introducing npm overrides to force patched versions of vulnerable transitive dependencies.
Changes:
- Bump
@docusaurus/*packages from 3.9.2 to 3.10.1. - Add
@docusaurus/fasterto support the existingfuture: { v4: true }configuration (Rspack builds). - Add npm
overridesforserialize-javascriptandsockjs -> uuidto eliminate reported vulnerabilities.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "@docusaurus/preset-classic": "3.9.2", | ||
| "@docusaurus/plugin-client-redirects": "3.9.2", | ||
| "@docusaurus/core": "3.10.1", | ||
| "@docusaurus/faster": "^3.10.1", |
Member
Author
There was a problem hiding this comment.
Good catch — fixed in 08780e6, @docusaurus/faster is now pinned to 3.10.1 like the rest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes all 22
npm auditfindings (1 high, 21 moderate) in the website and upgrades Docusaurus from 3.9.2 to 3.10.1.Vulnerabilities fixed via npm
overridesBoth issues are transitive deps that even the latest Docusaurus (3.10.1) hasn't bumped upstream yet, so
overridesare used to force the patched versions:serialize-javascript(via copy-webpack-plugin / css-minimizer-webpack-plugin)uuid(via webpack-dev-server → sockjs)Note:
npm audit fix --forcewas not used as it would have downgraded Docusaurus to 3.5.2. uuid is pinned to v11 (not latest v14) because sockjs loads it via CommonJS, which newer uuid majors dropped.Docusaurus 3.9.2 → 3.10.1
@docusaurus/*packages bumped to 3.10.1@docusaurus/faster, now required by the existingfuture: { v4: true }config flag in 3.10 (builds use the Rspack bundler)The overrides can be removed once Docusaurus bumps to copy-webpack-plugin@14 / css-minimizer-webpack-plugin@8 and sockjs updates uuid.
Test plan
npm audit→ 0 vulnerabilitiesnpm run typecheck→ passesnpm run build→ succeeds (pre-existing broken-link warnings on/docs/0.4/download/quickstartare unrelated content issues)