{"id":"CVE-2026-67422","published":"2026-08-06T20:26:31Z","modified":"2026-08-07T17:00:29Z","title":"pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors","vendor":"facelessuser","product":"pymdown-extensions","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00717,"percentile":0.54722,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-gm37-52c6-37mw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"facelessuser","affectedVersions":[{"vendor":"facelessuser","product":"pymdown-extensions","versions":["< 11.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-07T16:59:03.019688Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymdown-extensions","vulnerableRanges":["<11.0.1"],"patched":["11.0.1"],"from":["GHSA-gm37-52c6-37mw","PYSEC-2026-3654"],"provenance":"source"}],"summary":{"text":"The pymdown-extensions library (Python Markdown extensions, versions up to and including 11.0) contains a regular-expression flaw in its caret, tilde, betterem, and magiclink inline processors, where patterns can partition runs of delimiter characters in exponentially many ways. An unauthenticated remote attacker who can submit Markdown that is rendered with these extensions in their default configuration (for example via pymdownx.extra or a web app rendering user-supplied Markdown) can send a single line under 50 bytes to exhaust CPU on the rendering thread and cause denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:10Z"},"euvd":{"id":"EUVD-2026-54256","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-facelessuser-pymdown-extensions-cve-2023-32309","parents":[{"from":"CVE-2023-32309","to":"CVE-2026-67422","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b7bb4878d6017c03c8dc97c42d8d3bb6ee81db9d","https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"],"basis":"shared function","functions":["parse_version"]}]},{"from":"CVE-2025-68142","to":"CVE-2026-67422","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8","https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"],"basis":"shared function","functions":["parse_version"]}]},{"from":"CVE-2026-46338","to":"CVE-2026-67422","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c","https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"],"basis":"shared function","functions":["parse_version"]}]}],"packageHistory":[{"cve":"CVE-2025-68142","published":"2025-12-16","fixed":"10.16.1","kev":false},{"cve":"CVE-2026-46338","published":"2026-07-16","fixed":"10.21.3","kev":false},{"cve":"CVE-2026-61632","published":"2026-08-06","fixed":"11.0.0","kev":false,"link":{"from":"CVE-2026-61632","to":"CVE-2026-67422","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pymdown-extensions","fromFixed":"11.0.0","toFixed":"11.0.1","daysApart":0}]}},{"cve":"CVE-2026-67422","published":"2026-08-06","fixed":"11.0.1","kev":false}],"package":"PyPI:pymdown-extensions"}}