Skip to content

Patch Dependabot-flagged dependency vulnerabilities - #73

Merged
mikepsinn merged 1 commit into
developfrom
fix/dependabot-security-updates
Aug 30, 2026
Merged

Patch Dependabot-flagged dependency vulnerabilities#73
mikepsinn merged 1 commit into
developfrom
fix/dependabot-security-updates

Conversation

@mikepsinn

@mikepsinn mikepsinn commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Bumps js-yaml to 5.4.1, fixing quadratic/exponential-time DoS advisories that hit both the 3.x line (transitive via jest's @istanbuljs/load-nyc-config) and the 4.x line (direct + transitive via gray-matter) — Dependabot alerts #351, #354, #335.
  • Adds pnpm.overrides in root package.json to pull in patched, purely-transitive dependencies: hono, @hono/node-server, fast-uri, ip-address, brace-expansion, @opentelemetry/core, uuid — alerts #348, #341, #350, #349, #355, #346, #340, #339, #343, #342, #337, #182, #170.
  • Adds overrides in transmit/package.json for nanoid, undici, jsondiffpatch — alerts #357, #353, #347, #345, #344, #83.
  • None of these packages are imported directly in our code (confirmed via pnpm why / npm ls); this is a lockfile-only patch.

Left open (no fix available)

  • extract-zip (via puppeteer@puppeteer/browsers) — GHSA-jmr9-qjv8-65gv has no patched release; 2.0.1 is latest and still vulnerable.
  • @ai-sdk/provider-utils ≤3.0.97 — GHSA-866g-f22w-33x8 has no patched release in the 3.x line; only pre-release 3.1.0-beta builds exist past the vulnerable range. Fixing requires jumping the ai SDK to a new major (v7 in transmit/), which is a real migration, not a lockfile patch.

Test plan

  • pnpm audit on root: down to the 1 unfixable high (extract-zip) + 1 unfixable low (@ai-sdk/provider-utils).
  • npm audit in transmit/: down to 5 unfixable lows, all the same @ai-sdk/provider-utils chain.
  • Verified js-yaml v5 load/dump API compatibility with a smoke test; no safeLoad/safeDump usage anywhere in the codebase.
  • pnpm exec pyright dih_models scripts clean; full pre-commit hook (Pyright + pre-render validation + artifact regeneration) passed.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated bundled dependency versions to incorporate maintenance and security improvements.
    • Added version controls for supporting packages to promote consistent and reliable installations.
    • No user-facing features or interface changes were introduced.

Bumps js-yaml to 5.4.1 (fixes quadratic/exponential DoS in both the
3.x and 4.x lines used transitively via jest/gray-matter, alerts
351/354/335) and adds pnpm/npm overrides to pull in patched versions
of hono, @hono/node-server, fast-uri, ip-address, brace-expansion,
@opentelemetry/core, uuid (root), and nanoid, undici, jsondiffpatch
(transmit/) - all transitive deps with no direct usage in our code.

Two low/high alerts have no upstream fix yet and are left open:
- extract-zip (via puppeteer) - GHSA-jmr9-qjv8-65gv has no patched
  version as of 2.0.1, the latest release.
- @ai-sdk/provider-utils <=3.0.97 - GHSA-866g-f22w-33x8 has no
  patched release in the 3.x line; fixing requires a major ai SDK
  bump (v4->v7 in transmit/), out of scope for a dependency-patch PR.
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
transmit-warondisease Building Building Preview Aug 30, 2026 7:50pm

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T19:54:16.175097Z 523157d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mikepsinn
mikepsinn merged commit 030718b into develop Aug 30, 2026
4 of 6 checks passed
@mikepsinn
mikepsinn deleted the fix/dependabot-security-updates branch August 30, 2026 19:51

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 523157d572

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"handlebars": "4.7.9",
"protobufjs": "7.6.5"
"protobufjs": "7.6.5",
"js-yaml": "^5.4.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Scope the js-yaml override away from gray-matter

Whenever a TypeScript script parses QMD frontmatter, this override also replaces gray-matter@4.0.3's declared js-yaml@^3.13.1. That version of gray-matter binds yaml.safeLoad and yaml.safeDump during module initialization, but js-yaml 5 no longer exports either function, so scripts such as validate-frontmatter.ts and scripts/lib/file-utils.ts fail after a clean install. Upgrade or patch gray-matter, or restrict the override to consumers compatible with js-yaml 5.

Useful? React with 👍 / 👎.

Comment thread package.json
"@hono/node-server": "^1.19.15",
"fast-uri": "^3.1.5",
"ip-address": "^10.3.1",
"brace-expansion": "^5.0.9",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid forcing brace-expansion 5 into minimatch 3

On a clean install, this global override rewrites minimatch@3.1.5's dependency from brace-expansion 1 to version 5. Minimatch 3 expects require('brace-expansion') itself to be callable, while brace-expansion 5's CommonJS entry exports a namespace object, so any brace pattern such as **/*.{js,ts} throws TypeError: expand is not a function. The Jest and glob 7 dependency trees still use minimatch 3, so their coverage, exclusion, or file-selection paths can fail; scope the override to compatible minimatch versions instead.

Useful? React with 👍 / 👎.

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d92dabb-e3e2-4f14-bbe6-d1ac3a751db8

📥 Commits

Reviewing files that changed from the base of the PR and between 81e8001 and 523157d.

⛔ Files ignored due to path filters (2)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • transmit/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • package.json
  • transmit/package.json

📝 Walkthrough

Walkthrough

The root manifest upgrades js-yaml and adds multiple pnpm overrides. The transmit manifest adds overrides for nanoid, undici, and jsondiffpatch.

Changes

Dependency version pinning

Layer / File(s) Summary
Manifest dependency overrides
package.json, transmit/package.json
The root manifest upgrades js-yaml and pins additional dependencies. The transmit manifest pins nanoid, undici, and jsondiffpatch through an overrides block.

Estimated code review effort: 1 (Trivial) | ~5 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dependabot-security-updates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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