Intel

AIKIDO-2026-173660

prettier is vulnerable to Denial of Service (DoS)

GHSA-4cm8-f57v-mqm6Published Oct 20, 2026
October 20, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Prettier's bundled Markdown GFM table parser linearly scans a list in memory on every event edit, so formatting a table with many rows costs quadratic time. A Markdown or MDX document containing a single large GFM table can pin a CPU core for an extended period even though the table is valid CommonMark/GFM and triggers no parse error. Services that embed Prettier to format externally supplied Markdown, such as online formatters, playgrounds, or review and comment widgets, pay this cost from a comparatively small payload. The fix updates the bundled micromark-extension-gfm-table dependency to resolve edits without the quadratic scan.

How do I fix this?

Upgrade the prettier library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use Prettier to format Markdown or MDX content that can include externally supplied GFM tables.

Package

Versions

3.9.0 - 3.9.9

Fixed in 3.9.10

Background info

prettier is vulnerable to Denial of Service (DoS) in versions 3.9.0 - 3.9.9.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea