Skip to content

fix(textlint): raise peer range to pull in patched linter-formatter - #171

Merged
jasonworden merged 1 commit into
mainfrom
fix/textlint-linter-formatter-upgrade
Aug 6, 2026
Merged

fix(textlint): raise peer range to pull in patched linter-formatter#171
jasonworden merged 1 commit into
mainfrom
fix/textlint-linter-formatter-upgrade

Conversation

@jasonworden

Copy link
Copy Markdown
Owner

Summary

  • Raises @mermaid-lint/textlint's textlint peerDependency range from >=13.0.0 to >=15.8.0.
  • @textlint/linter-formatter@15.8.0 bumped its own js-yaml dependency to ^4.3.0, which patches the merge-key quadratic-CPU DoS (GHSA-52cp-r559-cp3m / CVE-2026-59869) for the textlint@textlint/linter-formatter path — no override needed, just a version bump.
  • As a side effect, the resolved textlint@15.8.0 tree no longer pulls in its optional @modelcontextprotocol/sdk integration (express/hono/cors/jose/zod/etc.), which we never used directly — that's most of this diff's size.

Not fully closing the alert

This is the "upgrade what's feasible" half of Dependabot alert #19, not the whole fix. js-yaml@4.2.0 is still reachable via a second, independent path:

mermaid-lint-vscode@vscode/vsce@3.9.2secretlint@10.2.2rc-config-loader@4.1.4 (js-yaml ^4.1.1)

@vscode/vsce is already on its latest release and hard-pins secretlint: ^10.1.2; secretlint's latest (13.0.4) is a major jump vsce doesn't support yet, and rc-config-loader@4.1.4 (also latest) still declares js-yaml ^4.1.1. No upstream release closes that path today — it'll need a pnpm.overrides entry or a future vsce/secretlint release.

Test plan

  • pnpm -r build — all 8 workspace packages build clean
  • pnpm test — 1223 tests pass
  • rtk proxy pnpm biome check — clean

🤖 Generated with Claude Code

textlint 15.8.0 bumped @textlint/linter-formatter's own js-yaml
dependency to ^4.3.0, closing the merge-key DoS (GHSA-52cp-r559-cp3m /
CVE-2026-59869) for that path without needing a pnpm override.

Note: this doesn't fully close Dependabot alert #19 — js-yaml@4.2.0
is still reachable via @vscode/vsce -> secretlint@10.2.2 ->
rc-config-loader, which has no upstream fix available yet.
@jasonworden
jasonworden merged commit ac0b58a into main Aug 6, 2026
9 checks passed
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