Inefficient regular expression complexity in pymdown-extensions - #VU162830
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to cause denial of service in applications rendering untrusted Markdown with the optional pymdownx.keys extension enabled.
The vulnerability exists due to ambiguous quoted-key regular expressions in pymdown-extensions that trigger exponential backtracking on unterminated quoted keys containing repeated backslashes. An unauthenticated remote attacker can submit a crafted 42-byte Markdown document that consumes approximately 36 seconds of CPU time during rendering.