prettier is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the prettier library to the patch version.
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.
3.9.0 - 3.9.9
Fixed in 3.9.10prettier is vulnerable to Denial of Service (DoS) in versions 3.9.0 - 3.9.9.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.