CVE-2026-67422pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and…
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | markdown | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | pymdown-extensions | Fix pending | UBUNTU-CVE-2026-67422 | |
| Ubuntu 24.04 | markdown | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | pymdown-extensions | Fix pending | UBUNTU-CVE-2026-67422 | |
| Ubuntu 22.04 | markdown | Not affected vulnerable_code_not_present | ||
| Debian 14 | pymdown-extensions | Fixed | 11.0.1-1 | DEBIAN-CVE-2026-67422 |
| Debian 13 | pymdown-extensions | Fix pending | DEBIAN-CVE-2026-67422 | |
| Debian 12 | pymdown-extensions | Fix pending | DEBIAN-CVE-2026-67422 | |
| PyPI library | pymdown-extensions | Fixed | 11.0.1 | GHSA-gm37-52c6-37mw |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- facelessuser pymdown-extensions: affected: < 11.0.1
References
- https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-gm37-52c6-37mw
- https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.