Skip to content

fix(deps): patch runtime security advisories (simple-git RCE, js-yaml DoS) - #316

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/deps-runtime-security
Aug 24, 2026
Merged

fix(deps): patch runtime security advisories (simple-git RCE, js-yaml DoS)#316
jeff-r2026 merged 1 commit into
mainfrom
fix/deps-runtime-security

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

What

Patches the two runtime-scope dependencies flagged by Dependabot. Both ship in the published teamai-cli package, so they are the ones that actually reach users.

Dependabot Package Scope Change Fixes
#6 high simple-git (direct) runtime ^3.27.0^3.36.0 (3.35.2 → 3.36.0) Remote Code Execution
#16 high js-yaml (via gray-matter) runtime pinned to ^3.15.1 via overrides (was 3.14.2) Quadratic-CPU DoS via YAML merge-key chains

js-yaml is pulled transitively by gray-matter@4.0.3 (declared ^3.13.1), so 3.15.1 stays within range — an overrides entry is enough, no fork or replacement needed.

Scope

Deliberately runtime-only. The remaining open Dependabot alerts are all devDependency-scoped (vitest, postcss, vite, esbuild, brace-expansion, picomatch) — they belong to the build/test toolchain and do not ship in the published package. Those are better handled in a separate cleanup PR, and the vitest critical (#8) requires a 2.x→3.x major bump that needs its own regression pass.

Test Plan

  • npm audit --omit=dev0 vulnerabilities (production tree clean)
  • npx tsc --noEmit → passes
  • npm run build → success
  • npx vitest run2182 tests / 161 files pass, no regressions
  • Real simple-git@3.36.0 ops verified end-to-end: init / add / commit / log / status / branchLocal
  • Real js-yaml@3.15.1 + gray-matter frontmatter parsing verified (anchors, aliases, nested maps)

Bump the two production dependencies flagged by Dependabot as
runtime-scope vulnerabilities:

- simple-git ^3.27.0 -> ^3.36.0 (installed 3.35.2 -> 3.36.0)
  fixes RCE advisory GHSA (Dependabot #6, high)
- js-yaml -> ^3.15.1 via overrides (pulled transitively by
  gray-matter, was 3.14.2) fixes quadratic-CPU DoS via merge-key
  chains (Dependabot #16, high)

`npm audit --omit=dev` now reports 0 vulnerabilities. Remaining open
alerts are all devDependency-scoped (build/test toolchain) and do not
ship in the published package.
@jeff-r2026
jeff-r2026 merged commit c89e471 into main Aug 24, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/deps-runtime-security branch August 24, 2026 11:16
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