Skip to content

fix(deps): Dependabot security bumps — baileys (critical) + 7 more (DAN-1385) - #26

Merged
dizhaky merged 4 commits into
mainfrom
dan/DAN-1385-hermes-dependabot-bumps
Jun 23, 2026
Merged

fix(deps): Dependabot security bumps — baileys (critical) + 7 more (DAN-1385)#26
dizhaky merged 4 commits into
mainfrom
dan/DAN-1385-hermes-dependabot-bumps

Conversation

@dizhaky

@dizhaky dizhaky commented Jun 23, 2026

Copy link
Copy Markdown
Owner

What

Dependabot security-bump batch for DAN-1385 (dep-bump portion). 8 alerts cleared, 1 documented residual, 2 code-level alerts (#93 DNS rebinding, #94 file perms) handled separately.

Bumps (per subpackage)

scripts/whatsapp-bridge (the live WhatsApp bridge):

ui-tui: esbuild 0.27.7→0.28.1 (direct) + tsx 4.21→4.22.4 (pulls esbuild 0.28 natively, dedupes nested vuln) — clears #46 (esbuild) + #61 (@babel/core). Build verified.

web: @babel/core + brace-expansion via npm audit fix — clears #84 (@babel/core). Build verified.

website (Docusaurus 3.10.1): overrides joi→17.13.4 + http-proxy-middleware→2.0.10 — clears #51 (joi) + #89 (http-proxy-middleware). Docusaurus build verified (exit 0).

Residual (accepted, documented)

  • feat(doctor): nudge when Slack has no channel allowlist #86 js-yaml (moderate DoS) — via gray-matter@docusaurus/utils. gray-matter 4.0.3 (latest) pins js-yaml ^3 and uses the 3.x safeLoad API; js-yaml 3.x has no fix (3.14.2 is the last 3.x). Forcing js-yaml 4.x would break gray-matter. The 4.x js-yaml copies are already at 4.2.0 (fixed). Accepted: moderate DoS requiring a malicious YAML input; Docusaurus only parses trusted local docs. Would need an upstream gray-matter js-yaml-4 release to clear.

Still open (separate PR — code fixes, not dep bumps)

npm audit per subpackage: 0 vulnerabilities (except the documented js-yaml residual in website).

Fixes DAN-1385 (dep-bump portion)

🤖 Generated with Claude Code

dizhaky and others added 4 commits June 23, 2026 07:25
…385)

Clears Dependabot #46 (esbuild dev-server Windows file-read, low) and
#61 (@babel/core sourceMappingURL file-read, low). tsx 4.22.x bundles
esbuild ~0.28 natively, deduping the nested vulnerable copy. Build verified.

Co-Authored-By: Claude <noreply@anthropic.com>
…N-1385)

Clears Dependabot #84 (@babel/core sourceMappingURL file-read, low) and
a moderate brace-expansion vuln. Build verified.

Co-Authored-By: Claude <noreply@anthropic.com>
….10 (DAN-1385)

Clears Dependabot #51 (joi recursive link() RangeError, moderate) and
#89 (http-proxy-middleware Host-header dispatch bypass, moderate). Both
are patch bumps within Docusaurus's existing major range. Docusaurus build
verified (exit 0).

Residual: #86 js-yaml (moderate DoS) via gray-matter → @docusaurus/utils.
gray-matter 4.0.3 (latest) pins js-yaml ^3 and uses the 3.x safeLoad API,
so js-yaml 3.14.2 has no in-range fix (forcing 4.x would break gray-matter).
The 4.x js-yaml copies are already at 4.2.0 (fixed). Accepted: moderate DoS
requiring a malicious YAML input; Docusaurus only parses trusted local docs.

Co-Authored-By: Claude <noreply@anthropic.com>
….0→7.6.4 (DAN-1385)

Clears Dependabot #43 (baileys CRITICAL: message upsert / hist-sync
spoofing + app-state corruption via malicious protocolMessage), #59
(protobufjs DoS via unbounded Any expansion), and #58 (protobufjs
schema-name shadowing).

baileys: switch from git-commit pin (WhiskeySockets/Baileys#01047debd8,
which resolved to 7.0.0-rc.9 — vulnerable) to npm 7.0.0-rc13 (latest
dist-tag, fixed in >=rc12). protobufjs override raised ^7.5.5 -> ^7.6.3
(resolves to 7.6.4). npm audit: 0 vulnerabilities.

Verified: bridge starts with a throwaway session dir + non-default port,
imports baileys cleanly, connects to WhatsApp servers, and reaches the QR
pairing stage ("Waiting for scan..."). baileys API (makeWASocket /
useMultiFileAuthState / fetchLatestBaileysVersion) is compatible with rc13.
Full live message round-trip on the real session requires deploy + pairing
+ watching the live bot (not done here — this is a live WhatsApp service).

Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 23, 2026

Copy link
Copy Markdown

DAN-1385

@github-actions

Copy link
Copy Markdown

🔎 Lint report: dan/DAN-1385-hermes-dependabot-bumps vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8650 on HEAD, 8650 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4568 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@github-actions

Copy link
Copy Markdown

⚠️ npm lockfile hash out of date

Checked against commit e2392c5 (PR head at check time).

The hash = "sha256-..." line in these nix files no longer matches the committed package-lock.json:

Apply the fix

  • Apply lockfile fix — tick to push a commit with the correct hashes to this PR branch
  • Or run the Nix Lockfile Fix workflow manually (pass PR #26)
  • Or locally: nix run .#fix-lockfiles and commit the diff

@dizhaky
dizhaky merged commit cfe74f6 into main Jun 23, 2026
22 of 24 checks passed
@dizhaky
dizhaky deleted the dan/DAN-1385-hermes-dependabot-bumps branch June 23, 2026 12:25
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