Skip to content

docs(deps): refresh docusaurus lockfile, clear 132 of 134 advisories - #41

Open
dex-the-ai wants to merge 1 commit into
masterfrom
security/docusaurus-deps-2026-11
Open

dex-the-ai wants to merge 1 commit into
masterfrom
security/docusaurus-deps-2026-11

Conversation

@dex-the-ai

Copy link
Copy Markdown

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.0 ranges, which resolves to Docusaurus 3.10.2. The Deploy to GitHub Pages job already builds that version, because it runs yarn install with no yarn.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. The resolutions changes 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 update within the existing ranges (npm 12, lockfile v3).
  • package.json overrides and resolutions (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.
    • Added serialize-javascript: ^7.1.3, a major bump. The Docusaurus 3.10 tree pulls 6.0.2 through copy-webpack-plugin@11. 7.x keeps the CJS require() API, and terser-webpack-plugin already uses 7.x.
    • Added tinypool: ^2.1.2, a major bump. @docusaurus/core 3.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 when future.faster.ssgWorkerThreads is 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/react 19, which drops the global JSX namespace. Without this change, npm run typecheck fails with 3 TS2503 errors. This matches the current Docusaurus template.

Still flagged (documented, not force-resolved)

Package Version Advisory Why it stays
picomatch 2.3.2 GHSA-fc5q-39xc-vjpf (ReDoS via extglobs, CVSS 8.7) No fix published. Every version is affected up to last_affected 4.0.7. It is reached through micromatch/anymatch/readdirp and only sees build-time glob patterns from this repo. The other 2 picomatch advisories are fixed by 2.3.2.
uuid 8.3.2 GHSA-w5hq-g745-h8pq (buffer bounds in v3/v5/v6 with buf) It is only pulled by sockjs (webpack-dev-server, used by docusaurus start and not the build). sockjs only calls uuid.v4() with no buffer, so the vulnerable code path isn't reached. The fix needs uuid 11, which sockjs doesn't declare, so it isn't overridden.

All 35 npm audit entries trace back to these two packages (npm audit --json shows only picomatch and uuid as advisory roots).

Advisory table (from the sweep, before → after)

Package Before After Advisories Max CVSS Status
@babel/core 7.24.5 7.29.13 GHSA-4x5r-pxfx-6jf8 (CVE-2026-49356) 3.2 fixed
@babel/helpers 7.24.5 7.29.14 GHSA-968p-4wvh-cqc8 (CVE-2025-27789) 6.2 fixed
@babel/plugin-transform-modules-systemjs 7.24.1 7.29.8 GHSA-fv7c-fp4j-7gwp (CVE-2026-44728) 8.2 fixed
@babel/runtime 7.24.5 7.29.14 GHSA-968p-4wvh-cqc8 (CVE-2025-27789) 6.2 fixed
@babel/runtime-corejs3 7.24.5 removed GHSA-968p-4wvh-cqc8 (CVE-2025-27789) 6.2 fixed
ajv 6.12.6, 8.13.0 6.15.0, 8.20.0 GHSA-2g4f-4pwh-qvx6 (CVE-2025-69873) 5.5 fixed
body-parser 1.20.2 1.20.9 GHSA-27r3-jxmh-p828 (CVE-2026-111181), GHSA-qwcr-r2fm-qrc7 (CVE-2024-45590), GHSA-v422-hmwv-36x6 (CVE-2026-12590) 8.7 fixed
brace-expansion 1.1.11 1.1.22 GHSA-3jxr-9vmj-r5cp (CVE-2026-13149), GHSA-6j4f-fj2g-mc7p (CVE-2026-102276), GHSA-f886-m6hf-6m8v (CVE-2026-33750), GHSA-mh99-v99m-4gvg (CVE-2026-14257), GHSA-q2hr-2g5m-vwhr (CVE-2026-102277), GHSA-qhr7-859c-m2p7 (CVE-2026-102278), GHSA-rgw5-rvv9-x895 (CVE-2026-69152), GHSA-v6h2-p8h4-qcjw (CVE-2025-5889) 7.7 fixed
braces 3.0.2 3.0.3 GHSA-grv7-fg5c-xmjg (CVE-2024-4068) 7.5 fixed
browserslist 4.23.0 4.29.6 GHSA-73wf-gq98-2v4g (CVE-2026-73088), GHSA-c83g-rgw3-j3cx (CVE-2026-73089) 7.5 fixed
colord 2.9.3 2.14.0 GHSA-2wm5-q62r-hmrv (CVE-2026-85062) 6.9 fixed
compression 1.7.4 1.8.2 GHSA-vc2v-76pw-4v95 (CVE-2026-87776) 7.5 fixed
cookie 0.6.0 0.7.2 GHSA-pxg6-pf52-xh8x (CVE-2024-47764) ? fixed
cross-spawn 7.0.3 7.0.6 GHSA-3xgq-45jj-v275 (CVE-2024-21538) 7.7 fixed
estree-util-value-to-estree 3.1.1 3.5.0 GHSA-f7f6-9jq7-3rqj (CVE-2025-32014) 6.9 fixed
express 4.19.2 4.22.3 GHSA-qw6h-vgh9-j6wx (CVE-2024-43796) 5.0 fixed
follow-redirects 1.15.6 1.16.3 GHSA-r4q5-vmmm-2653 (CVE-2026-40895) 6.9 fixed
http-proxy-middleware 2.0.6 2.0.12 GHSA-4www-5p9h-95mh (CVE-2025-32996), GHSA-64mm-vxmg-q3vj (CVE-2026-55602), GHSA-9gqv-wp59-fq42 (CVE-2025-32997), GHSA-c7qv-q95q-8v27 (CVE-2024-21536) 7.5 fixed
image-size 1.1.1 2.1.0 GHSA-m5qc-5hw7-8vg7 (CVE-2025-71319), GHSA-w3rx-r6r6-pgpr (CVE-2025-71330) 8.7 fixed
joi 17.13.1 17.13.9 GHSA-4528-x5fx-h6hg (CVE-2026-118772), GHSA-6h2x-m376-mqjq (CVE-2026-92599), GHSA-6w3j-5fw6-r9vr (CVE-2026-122131, CVE-2026-84368), GHSA-gg4h-3hg2-grpc (CVE-2026-84367), GHSA-q7cg-457f-vx79 (CVE-2026-48038), GHSA-wr44-6hxh-3jwq (CVE-2026-90771) 8.7 fixed
js-yaml 3.14.1, 4.1.0 4.3.2 GHSA-2883-xcg3-v3hh (CVE-2026-84375), GHSA-52cp-r559-cp3m (CVE-2026-59869), GHSA-5p4m-2wfm-xmqj, GHSA-h67p-54hq-rp68 (CVE-2026-53550), GHSA-mh29-5h37-fv8m (CVE-2025-64718) 7.5 fixed
launch-editor 2.6.1 2.14.2 GHSA-587h-7wmj-h5pm (CVE-2026-112942), GHSA-698v-4r3x-3vcv (CVE-2026-112943), GHSA-c27g-q93r-2cwf (CVE-2024-52011), GHSA-r825-w8mm-5pxw (CVE-2026-112944), GHSA-v6wh-96g9-6wx3 (CVE-2026-53632) 7.5 fixed
lodash 4.17.21 4.18.1 GHSA-r5fr-rjxr-66jc (CVE-2026-4800), GHSA-xxjr-mmjv-4gpg (CVE-2025-13465) 8.1 fixed
mdast-util-to-hast 13.1.0 13.2.2 GHSA-4fh9-h7wg-q85m (CVE-2025-66400) 6.9 fixed
micromatch 4.0.5 4.0.8 GHSA-952p-6rrq-rcjv (CVE-2024-4067) 5.3 fixed
minimatch 3.1.2 3.1.5 GHSA-23c5-xmqv-rm74 (CVE-2026-27904), GHSA-3ppc-4f35-3m26 (CVE-2026-26996), GHSA-7r86-cg39-jmmj (CVE-2026-27903) 8.7 fixed
nanoid 3.3.7 3.3.20 GHSA-28wg-ghj8-5hjv (CVE-2026-67214), GHSA-2v37-7h3g-55p8 (CVE-2026-67213), GHSA-mwcw-c2x4-8c55 (CVE-2024-55565), GHSA-xwg4-73v4-xw9w (CVE-2026-73086) 8.2 fixed
node-forge 1.3.1 removed GHSA-2328-f5f3-gj25 (CVE-2026-33896), GHSA-2vgq-wchc-25w7 (CVE-2026-118776), GHSA-4487-j8r4-4g2f (CVE-2026-118780), GHSA-4642-5mcj-2rqw (CVE-2026-118775), GHSA-525v-9gp9-w22h (CVE-2026-118778), GHSA-554w-wpv2-vw27 (CVE-2025-66031), GHSA-5cwg-6vw7-rj6p (CVE-2026-119186), GHSA-5gfm-wpxj-wjgq (CVE-2025-12816), GHSA-5m6q-g25r-mvwx (CVE-2026-33891), GHSA-5x38-2vff-x55p (CVE-2026-119190), GHSA-65ch-62r8-g69g (CVE-2025-66030), GHSA-6889-vf6x-f3g5 (CVE-2026-125335), GHSA-6cv4-p8m7-4r25 (CVE-2026-125333), GHSA-6qrw-m8cv-hcxf (CVE-2026-119192), GHSA-6wvx-3r32-xmcg (CVE-2026-118777), GHSA-7wch-p9px-956x (CVE-2026-118779), GHSA-86w9-cpqp-85rv (CVE-2026-33894, CVE-2026-85393), GHSA-8hrf-8g6f-7xwp (CVE-2026-119188), GHSA-9wg5-mj3p-v49q (CVE-2026-118774), GHSA-h46v-rmh6-fq4f (CVE-2026-119189), GHSA-h6cr-wjv9-3cpp (CVE-2026-118781), GHSA-hqq3-7jhf-c5jx (CVE-2026-119187), GHSA-j8rw-jp99-435v (CVE-2026-125334), GHSA-jc66-7q78-782g (CVE-2026-118782), GHSA-q67f-28xg-22rw (CVE-2026-33895), GHSA-rhr8-3pm8-cq29 (CVE-2026-119191), GHSA-w4xr-hqv8-ch44 (CVE-2026-125332) 8.7 fixed
on-headers 1.0.2 1.1.0 GHSA-76c9-3jph-rj3q (CVE-2025-7339) 3.4 fixed
path-to-regexp 0.1.7, 1.8.0, 2.2.1 0.1.13, 1.9.0, 3.3.0 GHSA-37ch-88jc-xwx2 (CVE-2024-45296, CVE-2026-4867), GHSA-rhx6-c78j-4q9w (CVE-2024-52798), GHSA-9wv6-86v2-598j (CVE-2024-45296, CVE-2026-4867) 7.7 fixed
picomatch 2.3.1 2.3.2 GHSA-3v7f-55p6-f55p (CVE-2026-33672), GHSA-c2c7-rcm5-vvqj (CVE-2026-33671), GHSA-fc5q-39xc-vjpf (CVE-2026-112366) 8.7 3v7f + c2c7 fixed; fc5q has no fix yet
postcss 8.4.38 8.5.33 GHSA-6g55-p6wh-862q (CVE-2026-45623), GHSA-fxqj-rqcc-2cmp (CVE-2026-69153), GHSA-qx2v-qp2m-jg93 (CVE-2026-41305), GHSA-r28c-9q8g-f849 (CVE-2026-73646) 7.5 fixed
postcss-selector-parser 6.0.16 6.1.6, 7.2.1 GHSA-rj75-hqrm-r3gf (CVE-2026-104844) 5.9 fixed
prismjs 1.29.0 1.30.0 GHSA-x7hr-w5r2-h6wg (CVE-2024-53382) 4.9 fixed
proxy-addr 2.0.7 2.0.8 GHSA-jqcg-44mw-7w3h (CVE-2026-90711) 9.1 fixed
qs 6.11.0 6.16.2 GHSA-4mjr-xmp4-gh2g (CVE-2026-82417), GHSA-6pq8-jhm2-2vcw (CVE-2026-110816), GHSA-6rw7-vpxm-498p (CVE-2025-15284), GHSA-w7fw-mjwx-w883 (CVE-2026-2391) 6.3 fixed
send 0.18.0 0.19.2 GHSA-m6fv-jmcg-4jfg (CVE-2024-43799) 5.0 fixed
serialize-javascript 6.0.2 7.1.4 GHSA-5c6j-r48x-rmvq, GHSA-m5mm-p8h7-m29v (CVE-2026-115754, CVE-2026-115897), GHSA-qj8w-gfj5-8c6v (CVE-2026-34043) 8.1 fixed
serve-static 1.15.0 1.16.3 GHSA-cm22-4g7w-348p (CVE-2024-43800) 5.0 fixed
shell-quote 1.8.1 1.12.0 GHSA-395f-4hp3-45gv (CVE-2026-13311), GHSA-w7jw-789q-3m8p (CVE-2026-9277) 9.2 fixed
source-map-js 1.2.0 1.2.2 GHSA-68fv-2mgg-jv7q (CVE-2026-93749) 8.7 fixed
svgo 3.2.0 3.3.5 GHSA-2p49-hgcm-8545 (CVE-2026-73650), GHSA-4vpr-x523-8j87 (CVE-2026-84369), GHSA-w27v-7q3p-w38r (CVE-2026-84370), GHSA-xpqw-6gx7-v673 (CVE-2026-29074) 8.2 fixed
uuid 8.3.2 8.3.2 GHSA-w5hq-g745-h8pq (CVE-2026-41907, CVE-2026-41988) 7.5 not reachable (see below)
webpack 5.91.0 5.112.2 GHSA-38r7-794h-5758 (CVE-2025-68157), GHSA-4vvj-4cpr-p986 (CVE-2024-43788), GHSA-8fgc-7cc6-rx7x (CVE-2025-68458) 6.4 fixed
webpack-dev-middleware 5.3.4 7.4.6 GHSA-g84c-rxfj-3j2c (CVE-2026-76844) 7.4 fixed
webpack-dev-server 4.15.2 5.2.7 GHSA-4v9v-hfq4-rm2v (CVE-2025-30359), GHSA-79cf-xcqc-c78w (CVE-2026-6402), GHSA-9jgg-88mc-972h (CVE-2025-30360), GHSA-f5vj-f2hx-8m93 (CVE-2026-14620), GHSA-m28w-2pqf-7qgj (CVE-2026-14631), GHSA-mx8g-39q3-5c79 (CVE-2026-9595) 6.5 fixed
websocket-driver 0.7.4 0.7.5 GHSA-mp7j-qc5w-4988 (CVE-2026-54490), GHSA-xv26-6w52-cph6 (CVE-2026-54466) 9.2 fixed
ws 7.5.9, 8.17.0 7.5.14, 8.23.0 GHSA-3h5v-q93c-6h6q (CVE-2024-37890), GHSA-96hv-2xvq-fx4p (CVE-2026-48779), GHSA-58qx-3vcg-4xpx (CVE-2026-45736) 8.7 fixed
yaml 1.10.2 removed GHSA-48c2-rrv3-qjmp (CVE-2026-33532) 4.3 fixed

tinypool isn'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:

Check master this PR
npm ci ✅ ✅
npm run typecheck (tsc) ✅ (on the stale 3.4 lock) ✅ (fails without the ReactNode change)
npm run build ✅ 17 pages ✅ 18 pages
Rendered text of every page (scripts/styles stripped) baseline identical for all 17 pages. The only new page is an empty blog.html that 3.10 emits, which the live deploy already produces.
Build with future.faster.ssgWorkerThreads + DOCUSAURUS_SSG_WORKER_THREAD_COUNT=4 (throwaway config, not committed) n/a ✅ tinypool 2.2.0 pool created, 6 tasks, identical text output
Deploy path: yarn install (yarn 1.22, no lockfile) + yarn build n/a ✅ resolves webpack 5.112.2, serialize-javascript 7.1.4, tinypool 2.2.0
docusaurus serve smoke n/a /, /docs/category/tutorial---ruby-couchbase-orm, /docs/tutorial-ruby-couchbase-orm/views → 200
osv-scanner scan source -r . 134 advisories / 49 packages 2 advisories / 2 packages (above)

The build still warns about broken links to /docs/intro, and about the deprecated onBrokenMarkdownLinks. Both warnings already happen on master and in the live deploy, and this PR doesn't change them.

Risk and rollback

  • Risk: low. This is docs-site tooling only, and no Ruby gem code, gemspec or tests change. The Docusaurus minor version change already happens in production through the yarn deploy. The two overrides are build-time majors and were validated above.
  • The deploy runs only on push to master, so this PR has no CI run that builds the site. The validation above stands in for it.
  • Rollback: revert this commit. The deploy job (yarn, no lock) would then go back to webpack ~5.91 and the old serialize-javascript/tinypool.

Kanban task: t_9da23d16 (monthly security sweep t_5385c53b, 2026-11-18).

🤖 Generated with Claude Code

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
dex-the-ai requested review from pimpin and prajwal-pai77 and a balanced review from Copilot November 18, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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.Element annotations with ReactNode for 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 thread docusaurus/package.json
Comment on lines +49 to +50
"serialize-javascript": "^7.1.3",
"tinypool": "^2.1.2"

This branch has not been deployed

No deployments
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