Skip to content
Heist/ feed
Back to feed
High

pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-67422
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:59 UTC · Revision 1

Source evidence

pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors

core-osv · Original source

Published 6 Aug 2026, 20:26 UTC

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.

osv:CVE-2026-67422
Complete source record
{
  "id": "0e7d0c7adb030261c4172074adbbf94e134175d3eb22711e2fa83a434557db1f",
  "url": "https://osv.dev/vulnerability/CVE-2026-67422",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors",
    "summary": "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.",
    "evidence": "osv:CVE-2026-67422",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-67422",
      "aliases": [
        "CVE-2026-67422",
        "GHSA-gm37-52c6-37mw",
        "PYSEC-2026-3654"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/facelessuser/pymdown-extensions",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c68498598d7b13011bb4571350b6e3612a4ce44b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "11.0.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c68498598d7b13011bb4571350b6e3612a4ce44b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "11.0",
            "10.21.3",
            "10.21.2",
            "10.21",
            "10.21.1",
            "10.20",
            "10.19.1",
            "10.19",
            "10.18",
            "10.17.2",
            "10.17.1",
            "10.17",
            "10.16.1",
            "10.16",
            "10.15",
            "10.14.3",
            "10.14.2",
            "10.14.1",
            "10.14",
            "10.13",
            "10.12",
            "10.11.2",
            "10.11.1",
            "10.11",
            "10.10.2",
            "10.10.1",
            "10.10",
            "10.9",
            "10.8.1",
            "10.8",
            "10.7.1",
            "10.7",
            "10.6",
            "10.5",
            "10.4",
            "10.3.1",
            "10.3",
            "10.2.1",
            "10.2",
            "10.1.0",
            "10.0.1",
            "10.0",
            "9.11",
            "9.10",
            "9.10b5",
            "9.10b4",
            "9.10b3",
            "9.10b2",
            "9.9.2",
            "9.9.1",
            "9.9",
            "9.8",
            "9.7",
            "9.6",
            "9.5",
            "9.4",
            "9.3",
            "9.2",
            "9.1",
            "9.0",
            "8.2",
            "8.1.1",
            "8.1",
            "8.0.1",
            "8.0",
            "7.1",
            "7.0.0",
            "7.0.0rc2",
            "7.0.0rc1",
            "7.0.0b2",
            "6.3.0",
            "6.2.1",
            "6.2.0",
            "6.1.0",
            "6.0.0",
            "5.0.0",
            "4.12.0",
            "4.11.0",
            "4.10.2",
            "4.10.1",
            "4.10.0",
            "4.9.2",
            "4.9.1",
            "4.9.0",
            "4.8.0",
            "4.7.0",
            "4.6.0",
            "4.5.1",
            "4.5.0",
            "4.4.0",
            "4.3.0",
            "4.2.0",
            "4.1.0",
            "4.0.0",
            "3.5.0",
            "3.4.0",
            "3.3.0",
            "3.2.1",
            "3.2",
            "3.1",
            "3.0",
            "2.0",
            "1.8.0",
            "1.7.0",
            "1.6.1",
            "1.6.0",
            "1.5.0",
            "1.4.0",
            "1.3.0",
            "1.2.0",
            "1.1.0",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-67422.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.538275587Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67422.json",
        "https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-gm37-52c6-37mw",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-67422",
        "https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67422.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-67422",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519068,
  "published_at": "2026-08-06T20:26:31.93+00:00"
}