Repository navigation
docs(deps): refresh docusaurus lockfile, clear 132 of 134 advisories - #41
Open
dex-the-ai wants to merge 1 commit into
Open
dex-the-ai wants to merge 1 commit into
dex-the-ai wants to merge 1 commit into
Conversation
The docs-site package-lock.json was still at Docusaurus 3.4.0 and webpack 5.91.0, which osv-scanner flagged for 134 advisories across 49 packages. Refresh it within the existing ^3.4.0 ranges (Docusaurus 3.10.2, the version the yarn-based deploy job already builds). - Raise the webpack override/resolution from ~5.91.0 to ^5.104.1 (the old pin was a Docusaurus 3.4 workaround and blocked the webpack fixes). - Override serialize-javascript ^7.1.3 and tinypool ^2.1.2, which the Docusaurus 3.10 tree still pulls at vulnerable majors. - Use ReactNode instead of the global JSX namespace, which @types/react 19 removed, so `npm run typecheck` passes again. Still flagged: picomatch GHSA-fc5q-39xc-vjpf (no fix published) and uuid GHSA-w5hq-g745-h8pq (sockjs only calls v4(), not affected). Kanban: t_9da23d16 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dex-the-ai
requested review from
pimpin and
prajwal-pai77
and
a balanced review from Copilot
November 18, 2026 15:10
There was a problem hiding this comment.
🟡 Changes recommended
The declared Node engine range still allows versions rejected by the refreshed dependencies, causing documented Yarn installs to fail; the engine metadata in package.json and package-lock.json must be aligned with dependency requirements.
1 open issue
What changed in this PR
This PR refreshes the Docusaurus documentation site's dependencies to address security advisories, without changing the Ruby gem.
Changes:
- Refreshes the lockfile to Docusaurus 3.10.2 and updated transitive dependencies.
- Keeps npm overrides and Yarn resolutions aligned for webpack, serialize-javascript, and tinypool.
- Replaces global
JSX.Elementannotations withReactNodefor compatibility with the refreshed React types.
| File | Description |
|---|---|
docusaurus/src/pages/index.tsx |
Updates the homepage return type to ReactNode. |
docusaurus/src/components/HomepageFeatures/index.tsx |
Updates feature descriptions and component return types to ReactNode. |
docusaurus/package.json |
Raises webpack constraints and adds serialization and worker-pool security overrides for both package managers. |
Review effort: Balanced
Comment on lines
+49
to
+50
| "serialize-javascript": "^7.1.3", | ||
| "tinypool": "^2.1.2" |
This branch has not been deployed
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
The monthly security sweep (osv-scanner 2.7.1) flagged 134 advisories across 49 packages in
docusaurus/package-lock.json, the docs site lockfile. The Ruby gem has no lockfile findings, and this PR doesn't touch it.The lockfile was still at Docusaurus 3.4.0 and webpack 5.91.0. This PR refreshes it within the existing
^3.4.0ranges, which resolves to Docusaurus 3.10.2. TheDeploy to GitHub Pagesjob already builds that version, because it runsyarn installwith noyarn.lock. The 3.10 deprecation warning in the last deploy log confirms this. So for the deployed site, this mostly brings the lockfile in line with what production builds. Theresolutionschanges are what actually reach the deploy.132 of 134 advisories are cleared. osv-scanner now reports 2, neither of which has an applicable fix.
Changes (all under
docusaurus/)package-lock.json:npm updatewithin the existing ranges (npm 12, lockfile v3).package.jsonoverridesandresolutions(kept in sync, as before):webpack:~5.91.0→^5.104.1. The old pin (added in f8d1588) was a workaround for Docusaurus 3.4 and blocked the 3 webpack fixes. Docusaurus 3.10 builds fine on webpack 5.112.2.serialize-javascript: ^7.1.3, a major bump. The Docusaurus 3.10 tree pulls 6.0.2 throughcopy-webpack-plugin@11. 7.x keeps the CJSrequire()API, andterser-webpack-pluginalready uses 7.x.tinypool: ^2.1.2, a major bump.@docusaurus/core3.10 pulls 1.1.1, which has two critical prototype-pollution-to-RCE advisories (GHSA-5gmw-xhrv-c9v3, GHSA-85c8-ppgw-ccpr). Docusaurus only loads it whenfuture.faster.ssgWorkerThreadsis enabled, and this site doesn't enable it. It was still validated with that flag on (see below).src/pages/index.tsx,src/components/HomepageFeatures/index.tsx:JSX.Element→ReactNode. The refresh brings in@types/react19, which drops the globalJSXnamespace. Without this change,npm run typecheckfails with 3 TS2503 errors. This matches the current Docusaurus template.Still flagged (documented, not force-resolved)
last_affected4.0.7. It is reached throughmicromatch/anymatch/readdirpand only sees build-time glob patterns from this repo. The other 2 picomatch advisories are fixed by 2.3.2.buf)sockjs(webpack-dev-server, used bydocusaurus startand not the build).sockjsonly callsuuid.v4()with no buffer, so the vulnerable code path isn't reached. The fix needs uuid 11, whichsockjsdoesn't declare, so it isn't overridden.All 35
npm auditentries trace back to these two packages (npm audit --jsonshows onlypicomatchanduuidas advisory roots).Advisory table (from the sweep, before → after)
tinypoolisn't in the sweep table because the old 3.4.0 tree didn't include it. The refresh introduced it, and the override fixes it.Validation
Run in
node:20(the deploy workflow's Node version) from clean installs:npm cinpm run typecheck(tsc)ReactNodechange)npm run buildblog.htmlthat 3.10 emits, which the live deploy already produces.future.faster.ssgWorkerThreads+DOCUSAURUS_SSG_WORKER_THREAD_COUNT=4(throwaway config, not committed)yarn install(yarn 1.22, no lockfile) +yarn builddocusaurus servesmoke/,/docs/category/tutorial---ruby-couchbase-orm,/docs/tutorial-ruby-couchbase-orm/views→ 200osv-scanner scan source -r .The build still warns about broken links to
/docs/intro, and about the deprecatedonBrokenMarkdownLinks. Both warnings already happen on master and in the live deploy, and this PR doesn't change them.Risk and rollback
master, so this PR has no CI run that builds the site. The validation above stands in for it.Kanban task:
t_9da23d16(monthly security sweept_5385c53b, 2026-11-18).🤖 Generated with Claude Code