CVE-2026-67422: pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors
pymdown-extensions is a collection of extensions for the Python Markdown library. In versions up to and including 11.0, four inline processors (caret, tilde, betterem, and magiclink) use regular expressions whose content groups can partition a run of delimiter characters in exponentially many ways, causing catastrophic backtracking. As a result, a single untrusted Markdown line under 50 bytes rendered with markdown.markdown() in each extension's default configuration drives the rendering thread into unbounded CPU usage that grows exponentially with input length, enabling an unauthenticated remote attacker who can submit Markdown to cause denial of service. The exposure is concrete for web applications that render user-supplied Markdown (comments, wikis, issue bodies, live preview), including any app using pymdownx.extra which bundles the vulnerable betterem default, as well as hosted docs/CI systems that build untrusted Markdown. The issue has been fixed in version 11.0.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pymdown-extensionsto a version that resolves this vulnerability.Fixed in 11.0.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-67422?
The severity of CVE-2026-67422 is rated high with a score of 7.5.
How do I fix CVE-2026-67422?
To fix CVE-2026-67422, upgrade to pymdown-extensions version 11.1 or later.
What impact does CVE-2026-67422 have on my application?
CVE-2026-67422 can lead to a denial-of-service (DoS) attack due to exponential backtracking in specific inline processors.
Which components are affected by CVE-2026-67422?
CVE-2026-67422 affects the caret, tilde, betterem, and magiclink inline processors in pymdown-extensions.
Is there a workaround for CVE-2026-67422?
There is no official workaround for CVE-2026-67422; upgrading is the recommended action.