Skip to content

chore(deps): patch browser-reachable + direct security advisories#32

Merged
mikedotexe merged 1 commit into
mainfrom
chore/dependabot-minimal
Jul 21, 2026
Merged

chore(deps): patch browser-reachable + direct security advisories#32
mikedotexe merged 1 commit into
mainfrom
chore/dependabot-minimal

Conversation

@mikedotexe

Copy link
Copy Markdown
Collaborator

Context

GitHub reports 41 Dependabot alerts on builder-docs. Investigation found they are not stale but the installed versions sit one patch behind the newest GHSA fixes. Reachability split:

  • Ships to users (browser bundle): dompurify, mermaid (mermaid is enabled; 29 diagrams render client-side, processing trusted authored content).
  • Build/dev-tooling only (never shipped): the rest (webpack-dev-server, shell-quote, ws, undici, @babel/*, tar, qs, …).

yarn npm audit --environment production was already clean; yarn npm audit --all flagged only js-yaml (npm's advisory DB is narrower than GHSA).

This PR — the browser-reachable + direct set

Package From → To Why
dompurify 3.4.0 → 3.4.12 (^3.4.11) 8 GHSA advisories; browser-shipped via mermaid
mermaid 11.12.3 → 11.16.0 (new ^11.15.0) 4 GHSA advisories; renders client-side
js-yaml ^4.1.1 → ^4.3.0 direct devDep; the 2 advisories yarn npm audit confirms
@docusaurus/* 3.10.0 → 3.10.2 patch bump; toolchain refresh

After: yarn npm audit --all → 0 advisories.

Not in this PR

The ~27 remaining alerts are dev/build-tooling transitives, each one patch behind its GHSA fix, none of which execute in the deployed static bundle. Left for annotation on the security tab rather than force-bumping the whole toolchain (which the "full sweep" option deliberately declined).

Validation

  • yarn ci:locale-quality (the CI gate) — green (en+ru build + RU/i18n/indexing audits)
  • yarn test:e2e — 174 passed; 1 pre-existing layout flake (copy actions stay side by side) passes 3/3 on isolated rerun
  • Mermaid diagrams verified rendering in-browser with 11.16.0, no console errors

🤖 Generated with Claude Code

https://claude.ai/code/session_01H8DjaLbA7Ed63XuSAENrJ7

…mermaid, js-yaml, docusaurus)

Addresses the GitHub Dependabot alerts that actually reach the shipped static
site or are direct dependencies:

- dompurify 3.4.0 -> 3.4.12 (resolution ^3.4.11): 8 GHSA advisories; ships to
  the browser via mermaid's sanitizer.
- mermaid 11.12.3 -> 11.16.0 (new resolution ^11.15.0): 4 GHSA advisories; 29
  diagrams render client-side. Verified in-browser, no console errors.
- js-yaml ^4.1.1 -> ^4.3.0: direct devDependency; clears the 2 advisories that
  `yarn npm audit` also confirms.
- @docusaurus/* 3.10.0 -> 3.10.2: patch bump, refreshes the toolchain.

After this, `yarn npm audit --all` reports 0 advisories.

The ~27 remaining Dependabot alerts are all dev/build-tooling transitive deps
(webpack-dev-server, shell-quote, ws, undici, @babel/*, tar, qs, etc.), each one
patch behind its GHSA fix. None execute in the deployed static bundle; handled
separately (annotate) rather than force-bumping the whole toolchain here.

Validated: yarn ci:locale-quality green (en+ru build + audits); playwright 174
passed (1 pre-existing layout flake, passes 3/3 on isolated rerun); mermaid
diagrams render correctly with 11.16.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H8DjaLbA7Ed63XuSAENrJ7
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying builder-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1021084
Status: ✅  Deploy successful!
Preview URL: https://8026e205.builder-docs.pages.dev
Branch Preview URL: https://chore-dependabot-minimal.builder-docs.pages.dev

View logs

@mikedotexe
mikedotexe merged commit 0ea9b96 into main Jul 21, 2026
2 checks passed
@mikedotexe
mikedotexe deleted the chore/dependabot-minimal branch July 21, 2026 02:23
mikedotexe added a commit that referenced this pull request Jul 21, 2026
…an older build)

No content change. Four PRs merged within ~3 minutes (#32, #33, #30, #31) and their
Cloudflare Pages deployments finished out of order:

  #33 fe452e4  14:01:28
  #31 f914d2f  14:02:13   <- newest commit (contains the RPC endpoint-URL fix)
  #30 99a2520  14:02:56   <- finished LAST

CF Pages points the production alias at the last deployment to *finish*, not the
newest commit, so docs.fastnear.com got pinned to #30's build (main.6e03125c.js),
which predates the RPC fix. Result: the live docs still rendered a fabricated
`https://rpc.mainnet.fastnear.com/account/view_account` instead of the real base
endpoint.

This empty commit forces a fresh production deployment of current main, which
already contains the fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H8DjaLbA7Ed63XuSAENrJ7
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