Skip to content

Override markdown-it to 15.0.3 for GHSA-r7fv-28h4-cvq7 - #4267

Merged
matthewhelmke merged 1 commit into
mainfrom
fix-markdown-it-ghsa-r7fv
Oct 20, 2026
Merged

matthewhelmke merged 1 commit into
mainfrom
fix-markdown-it-ghsa-r7fv

Conversation

@matthewhelmke

Copy link
Copy Markdown
Collaborator

Fixes Dependabot alert 188 (CVE-2026-111759, high): markdown-it's smartquotes rule takes quadratic time on unmatched closing quotes.

markdownlint-cli2 0.23.3, the latest release, pins markdown-it to exactly 15.0.1, so neither Dependabot nor a parent bump can fix this. This PR adds an overrides entry, as we did for smol-toml.

The floor is 15.0.3 rather than 15.0.2 because 15.0.3 also fixes GHSA-vfgh-jcmw-g37q and GHSA-gfr2-rv44-r23c. It clears the 3-day npm cooldown check. The only other lockfile change is markdown-it's nested argparse (3.0.2 → 3.0.3).

Exposure: none in practice. The bug needs typographer: true, and our markdownlint config loads no markdown-it plugins. CI's pre-commit hook builds markdownlint-cli2 from upstream with its own pin, so this closes the alert without changing the linter CI runs.

Testing: npm ci is clean; npm audit no longer reports markdown-it; markdownlint passes on all 441 content files. The advisory's reproduction took 1946 ms on 15.0.1 and 4 ms on 15.0.3 (192,000-character input).

🤖 Generated with Claude Code


Created in collaboration with Claude Code running Claude Opus 5.5 on 2026-10-20.

markdownlint-cli2 0.23.3, the latest release, pins markdown-it to
exactly 15.0.1, so neither Dependabot nor a parent bump can fix this.
An override is the same remedy edu uses for smol-toml.

The floor is 15.0.3, not 15.0.2: 15.0.3 also fixes GHSA-vfgh-jcmw-g37q
and GHSA-gfr2-rv44-r23c. It was published 2026-10-16, which clears the
3-day npm cooldown check. The only other lockfile change is markdown-it's
nested argparse, 3.0.2 to 3.0.3 (published 2026-10-15).

Exposure was nil: the smartquotes bug needs typographer: true, and edu's
markdownlint config loads no markdown-it plugins. CI's pre-commit hook
builds markdownlint-cli2 from upstream with its own pin, so this change
closes Dependabot alert 188 but does not change the linter CI runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matthewhelmke
matthewhelmke requested review from a team as code owners October 20, 2026 16:03
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
chainguard-docs-preview Ready Ready Preview Oct 20, 2026 4:03pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
chainguard-docs Ignored Ignored Oct 20, 2026 4:03pm UTC

Request Review

@matthewhelmke
matthewhelmke merged commit 497aebb into main Oct 20, 2026
13 checks passed
@matthewhelmke
matthewhelmke deleted the fix-markdown-it-ghsa-r7fv branch October 20, 2026 16:14

This branch was successfully deployed

1 active deployment
Preview – chainguard-docs-preview — cd5b3707 Deployed Oct 20, 2026 by vercel[bot]
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.

2 participants