Inefficient regular expression complexity in pymdown-extensions - #VU162828
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 HTML or Caption blocks extension enabled.
The vulnerability exists due to exponential regular expression backtracking when pymdown-extensions parses malformed CSS-style selector arguments in those extensions. An unauthenticated remote attacker can submit a crafted Markdown block smaller than 60 bytes to consume a rendering thread's CPU for tens of seconds.