Skip to content

fix(website): resolve npm audit vulnerabilities and upgrade Docusaurus to 3.10.1#1375

Merged
ryankert01 merged 2 commits into
apache:mainfrom
ryankert01:website-deps-audit-fix
Jun 5, 2026
Merged

fix(website): resolve npm audit vulnerabilities and upgrade Docusaurus to 3.10.1#1375
ryankert01 merged 2 commits into
apache:mainfrom
ryankert01:website-deps-audit-fix

Conversation

@ryankert01

@ryankert01 ryankert01 commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

Fixes all 22 npm audit findings (1 high, 21 moderate) in the website and upgrades Docusaurus from 3.9.2 to 3.10.1.

Vulnerabilities fixed via npm overrides

Both issues are transitive deps that even the latest Docusaurus (3.10.1) hasn't bumped upstream yet, so overrides are used to force the patched versions:

Package Vulnerable Fixed Advisories
serialize-javascript (via copy-webpack-plugin / css-minimizer-webpack-plugin) 6.0.2 ^7.0.5 GHSA-5c6j-r48x-rmvq (RCE, high), GHSA-qj8w-gfj5-8c6v (DoS)
uuid (via webpack-dev-server → sockjs) 8.3.2 ^11.1.1 GHSA-w5hq-g745-h8pq (moderate)

Note: npm audit fix --force was 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

  • All @docusaurus/* packages bumped to 3.10.1
  • Added @docusaurus/faster, now required by the existing future: { 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 vulnerabilities
  • npm run typecheck → passes
  • npm run build → succeeds (pre-existing broken-link warnings on /docs/0.4/download/quickstart are unrelated content issues)

…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
@ryankert01 ryankert01 force-pushed the website-deps-audit-fix branch from 231a69f to bcad1e6 Compare June 5, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/faster to support the existing future: { v4: true } configuration (Rspack builds).
  • Add npm overrides for serialize-javascript and sockjs -> uuid to eliminate reported vulnerabilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/package.json Outdated
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/plugin-client-redirects": "3.9.2",
"@docusaurus/core": "3.10.1",
"@docusaurus/faster": "^3.10.1",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — fixed in 08780e6, @docusaurus/faster is now pinned to 3.10.1 like the rest.

@ryankert01 ryankert01 merged commit d64a9f3 into apache:main Jun 5, 2026
6 checks passed
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.

2 participants