CVE-2026-134915 (GCVE-0-2026-134915)

Vulnerability from cvelistv5 – Published: 2026-11-30 18:43 – Updated: 2026-12-03 18:13
VLAI
Title
Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags
Summary
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags. MDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N²), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected. This issue affects mdex: from 0.14.0 before 0.15.0.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-12-03 17:11 UTC
CWE
  • CWE-407 - Inefficient Algorithmic Complexity
Assigner
EEF CNA under the mitre root
CNA scorecard A 97/100 over 385 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
leandrocp mdex Affected: 0.14.0 , < 0.15.0 (semver)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
leandrocp mdex Affected: a88793cb0fc5caf75bf878b92c64d36817824765 , < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af (git)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
Date Public
2026-11-30 18:43
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-134915",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-12-03T17:11:46.994447Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-12-03T18:13:26.736Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://repo.hex.pm",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.MDEx.FragmentParser\u0027",
            "\u0027Elixir.MDEx\u0027"
          ],
          "packageName": "mdex",
          "packageURL": "pkg:hex/mdex",
          "product": "mdex",
          "programFiles": [
            "lib/mdex/fragment_parser.ex",
            "lib/mdex.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:stream/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "0.15.0",
              "status": "affected",
              "version": "0.14.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.MDEx.FragmentParser\u0027",
            "\u0027Elixir.MDEx\u0027"
          ],
          "packageName": "leandrocp/mdex",
          "packageURL": "pkg:github/leandrocp/mdex",
          "product": "mdex",
          "programFiles": [
            "lib/mdex/fragment_parser.ex",
            "lib/mdex.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:stream/2"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex",
          "vendor": "leandrocp",
          "versions": [
            {
              "lessThan": "2c29b28cd0473c24347aa00b95d16f9ce5f9d9af",
              "status": "affected",
              "version": "a88793cb0fc5caf75bf878b92c64d36817824765",
              "versionType": "git"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "0.15.0",
                  "versionStartIncluding": "0.14.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ],
          "operator": "AND"
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "reporter",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "analyst",
          "value": "Jonatan M\u00e4nnchen / EEF"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Leandro Pereira"
        }
      ],
      "dateAssigned": "2026-11-30T16:56:08.000Z",
      "datePublic": "2026-11-30T18:43:09.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eInefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e to exhaust CPU via unmatched HTML closing tags.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eMDEx.stream/2\u003c/code\u003e tracks open HTML tags with \u003ccode\u003eMDEx.FragmentParser.continue_html_context/2\u003c/code\u003e in \u003ccode\u003elib/mdex/fragment_parser.ex\u003c/code\u003e. Every non-void opening tag is pushed onto an unbounded list, and \u003ccode\u003eclose_html_tag/2\u003c/code\u003e scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the \u003ccode\u003eauto_close\u003c/code\u003e option and the render \u003ccode\u003eunsafe\u003c/code\u003e setting. \u003ccode\u003eMDEx.to_html/1\u003c/code\u003e and the other non-streaming entry points are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects mdex: from 0.14.0 before 0.15.0.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to `MDEx.stream/2` to exhaust CPU via unmatched HTML closing tags.\n\n`MDEx.stream/2` tracks open HTML tags with `MDEx.FragmentParser.continue_html_context/2` in `lib/mdex/fragment_parser.ex`. Every non-void opening tag is pushed onto an unbounded list, and `close_html_tag/2` scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the `auto_close` option and the render `unsafe` setting. `MDEx.to_html/1` and the other non-streaming entry points are not affected.\n\nThis issue affects mdex: from 0.14.0 before 0.15.0."
            }
          ],
          "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags.\n\nMDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected.\n\nThis issue affects mdex: from 0.14.0 before 0.15.0."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-130",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eAn attacker who can submit Markdown that an application renders with \u003ccode\u003eMDEx.stream/2\u003c/code\u003e can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "An attacker who can submit Markdown that an application renders with `MDEx.stream/2` can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node."
                }
              ],
              "value": "An attacker who can submit Markdown that an application renders with MDEx.stream/2 can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node."
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "attackVector": "LOCAL",
            "baseScore": 6.9,
            "baseSeverity": "MEDIUM",
            "privilegesRequired": "NONE",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-407",
              "description": "CWE-407 Inefficient Algorithmic Complexity",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-30T18:43:11.147Z",
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF"
      },
      "references": [
        {
          "name": "EEF CNA record for CVE-2026-134915",
          "tags": [
            "related",
            "third-party-advisory"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-134915.html"
        },
        {
          "name": "OSV record EEF-CVE-2026-134915",
          "tags": [
            "related"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-134915"
        },
        {
          "name": "Introducing commit a88793c in leandrocp/mdex",
          "tags": [
            "related"
          ],
          "url": "https://github.com/leandrocp/mdex/commit/a88793cb0fc5caf75bf878b92c64d36817824765"
        },
        {
          "name": "Fix commit 2c29b28 in leandrocp/mdex",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af"
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags",
      "x_proofOfConcept": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003col\u003e\n\u003cli\u003eBuild a Markdown string of \u003ccode\u003e\u0026lt;div\u0026gt;\u003c/code\u003e repeated 30,000 times followed by \u003ccode\u003e\u0026lt;/b\u0026gt;\u003c/code\u003e repeated 30,000 times (270,000 bytes).\u003c/li\u003e\n\u003cli\u003eRender it as one chunk with \u003ccode\u003eMDEx.stream(auto_close: false)\u003c/code\u003e and run the stream.\u003c/li\u003e\n\u003cli\u003eObserve about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for \u003ccode\u003eMDEx.to_html!/1\u003c/code\u003e on the same input. Doubling the input roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "1. Build a Markdown string of `\u003cdiv\u003e` repeated 30,000 times followed by `\u003c/b\u003e` repeated 30,000 times (270,000 bytes).\n2. Render it as one chunk with `MDEx.stream(auto_close: false)` and run the stream.\n3. Observe about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for `MDEx.to_html!/1` on the same input. Doubling the input roughly quadruples the time."
            }
          ],
          "value": "* Build a Markdown string of \u003cdiv\u003e repeated 30,000 times followed by \u003c/b\u003e repeated 30,000 times (270,000 bytes).\n* Render it as one chunk with MDEx.stream(auto_close: false) and run the stream.\n* Observe about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for MDEx.to_html!/1 on the same input. Doubling the input roughly quadruples the time."
        }
      ],
      "x_technicalAnalysis": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003e\u003cstrong\u003e1. Reachability.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e renders each chunk through \u003ccode\u003eemit_stream_source\u003c/code\u003e, \u003ccode\u003estream_source_blocks\u003c/code\u003e and \u003ccode\u003estream_node_groups\u003c/code\u003e in \u003ccode\u003elib/mdex.ex\u003c/code\u003e. \u003ccode\u003estream_node_groups\u003c/code\u003e calls \u003ccode\u003eMDEx.FragmentParser.continue_html_context/2\u003c/code\u003e on every parsed node, so every \u003ccode\u003eHtmlBlock\u003c/code\u003e and \u003ccode\u003eHtmlInline\u003c/code\u003e literal is scanned, whatever the \u003ccode\u003eauto_close\u003c/code\u003e and render \u003ccode\u003eunsafe\u003c/code\u003e settings are.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unbounded stack.\u003c/strong\u003e \u003ccode\u003escan_html\u003c/code\u003e pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Quadratic scan.\u003c/strong\u003e For each closing tag, \u003ccode\u003eclose_html_tag/2\u003c/code\u003e runs \u003ccode\u003eEnum.split_while/2\u003c/code\u003e over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2).\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "**1. Reachability.** `MDEx.stream/2` renders each chunk through `emit_stream_source`, `stream_source_blocks` and `stream_node_groups` in `lib/mdex.ex`. `stream_node_groups` calls `MDEx.FragmentParser.continue_html_context/2` on every parsed node, so every `HtmlBlock` and `HtmlInline` literal is scanned, whatever the `auto_close` and render `unsafe` settings are.\n\n**2. Unbounded stack.** `scan_html` pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\n\n**3. Quadratic scan.** For each closing tag, `close_html_tag/2` runs `Enum.split_while/2` over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2)."
            }
          ],
          "value": "1. Reachability. MDEx.stream/2 renders each chunk through emit_stream_source, stream_source_blocks and stream_node_groups in lib/mdex.ex. stream_node_groups calls MDEx.FragmentParser.continue_html_context/2 on every parsed node, so every HtmlBlock and HtmlInline literal is scanned, whatever the auto_close and render unsafe settings are.\n\n2. Unbounded stack. scan_html pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\n\n3. Quadratic scan. For each closing tag, close_html_tag/2 runs Enum.split_while/2 over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2)."
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "cveId": "CVE-2026-134915",
    "datePublished": "2026-11-30T18:43:11.147Z",
    "dateReserved": "2026-11-30T16:56:06.346Z",
    "dateUpdated": "2026-12-03T18:13:26.736Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-134915",
      "date": "2026-12-04",
      "epss": "0.00316",
      "percentile": "0.26478"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://repo.hex.pm",
                "cpes": [
                  "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "modules": [
                  "\u0027Elixir.MDEx.FragmentParser\u0027",
                  "\u0027Elixir.MDEx\u0027"
                ],
                "packageName": "mdex",
                "packageURL": "pkg:hex/mdex",
                "product": "mdex",
                "programFiles": [
                  "lib/mdex/fragment_parser.ex",
                  "lib/mdex.ex"
                ],
                "programRoutines": [
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:stream/2"
                  }
                ],
                "repo": "https://github.com/leandrocp/mdex",
                "vendor": "leandrocp",
                "versions": [
                  {
                    "lessThan": "0.15.0",
                    "status": "affected",
                    "version": "0.14.0",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "collectionURL": "https://github.com",
                "cpes": [
                  "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "modules": [
                  "\u0027Elixir.MDEx.FragmentParser\u0027",
                  "\u0027Elixir.MDEx\u0027"
                ],
                "packageName": "leandrocp/mdex",
                "packageURL": "pkg:github/leandrocp/mdex",
                "product": "mdex",
                "programFiles": [
                  "lib/mdex/fragment_parser.ex",
                  "lib/mdex.ex"
                ],
                "programRoutines": [
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:stream/2"
                  }
                ],
                "repo": "https://github.com/leandrocp/mdex",
                "vendor": "leandrocp",
                "versions": [
                  {
                    "lessThan": "2c29b28cd0473c24347aa00b95d16f9ce5f9d9af",
                    "status": "affected",
                    "version": "a88793cb0fc5caf75bf878b92c64d36817824765",
                    "versionType": "git"
                  }
                ]
              }
            ],
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags.\n\nMDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected.\n\nThis issue affects mdex: from 0.14.0 before 0.15.0."
          }
        ],
        "id": "CVE-2026-134915",
        "lastModified": "2026-12-03T19:17:23.050",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 6.9,
                "baseSeverity": "MEDIUM",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-134915",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-12-03T17:11:46.994447Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-11-30T19:17:47.130",
        "references": [
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://cna.erlef.org/cves/CVE-2026-134915.html"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://github.com/leandrocp/mdex/commit/a88793cb0fc5caf75bf878b92c64d36817824765"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://osv.dev/vulnerability/EEF-CVE-2026-134915"
          }
        ],
        "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-407"
              }
            ],
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "type": "Secondary"
          }
        ]
      }
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-134915",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-12-03T17:11:46.994447Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-12-03T17:11:48.846Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.MDEx.FragmentParser\u0027",
                "\u0027Elixir.MDEx\u0027"
              ],
              "packageName": "mdex",
              "packageURL": "pkg:hex/mdex",
              "product": "mdex",
              "programFiles": [
                "lib/mdex/fragment_parser.ex",
                "lib/mdex.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:stream/2"
                }
              ],
              "repo": "https://github.com/leandrocp/mdex",
              "vendor": "leandrocp",
              "versions": [
                {
                  "lessThan": "0.15.0",
                  "status": "affected",
                  "version": "0.14.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "\u0027Elixir.MDEx.FragmentParser\u0027",
                "\u0027Elixir.MDEx\u0027"
              ],
              "packageName": "leandrocp/mdex",
              "packageURL": "pkg:github/leandrocp/mdex",
              "product": "mdex",
              "programFiles": [
                "lib/mdex/fragment_parser.ex",
                "lib/mdex.ex"
              ],
              "programRoutines": [
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:close_html_tag/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_html_context/2"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:stream/2"
                }
              ],
              "repo": "https://github.com/leandrocp/mdex",
              "vendor": "leandrocp",
              "versions": [
                {
                  "lessThan": "2c29b28cd0473c24347aa00b95d16f9ce5f9d9af",
                  "status": "affected",
                  "version": "a88793cb0fc5caf75bf878b92c64d36817824765",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "0.15.0",
                      "versionStartIncluding": "0.14.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "reporter",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "analyst",
              "value": "Jonatan M\u00e4nnchen / EEF"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Leandro Pereira"
            }
          ],
          "dateAssigned": "2026-11-30T16:56:08.000Z",
          "datePublic": "2026-11-30T18:43:09.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eInefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e to exhaust CPU via unmatched HTML closing tags.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eMDEx.stream/2\u003c/code\u003e tracks open HTML tags with \u003ccode\u003eMDEx.FragmentParser.continue_html_context/2\u003c/code\u003e in \u003ccode\u003elib/mdex/fragment_parser.ex\u003c/code\u003e. Every non-void opening tag is pushed onto an unbounded list, and \u003ccode\u003eclose_html_tag/2\u003c/code\u003e scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the \u003ccode\u003eauto_close\u003c/code\u003e option and the render \u003ccode\u003eunsafe\u003c/code\u003e setting. \u003ccode\u003eMDEx.to_html/1\u003c/code\u003e and the other non-streaming entry points are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects mdex: from 0.14.0 before 0.15.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to `MDEx.stream/2` to exhaust CPU via unmatched HTML closing tags.\n\n`MDEx.stream/2` tracks open HTML tags with `MDEx.FragmentParser.continue_html_context/2` in `lib/mdex/fragment_parser.ex`. Every non-void opening tag is pushed onto an unbounded list, and `close_html_tag/2` scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the `auto_close` option and the render `unsafe` setting. `MDEx.to_html/1` and the other non-streaming entry points are not affected.\n\nThis issue affects mdex: from 0.14.0 before 0.15.0."
                }
              ],
              "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags.\n\nMDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N\u00b2), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected.\n\nThis issue affects mdex: from 0.14.0 before 0.15.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can submit Markdown that an application renders with \u003ccode\u003eMDEx.stream/2\u003c/code\u003e can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can submit Markdown that an application renders with `MDEx.stream/2` can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node."
                    }
                  ],
                  "value": "An attacker who can submit Markdown that an application renders with MDEx.stream/2 can tie up a BEAM scheduler for tens of seconds per request, and a few concurrent requests stall the node."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.9,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "CWE-407 Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-30T18:43:11.147Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-134915",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-134915.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-134915",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-134915"
            },
            {
              "name": "Introducing commit a88793c in leandrocp/mdex",
              "tags": [
                "related"
              ],
              "url": "https://github.com/leandrocp/mdex/commit/a88793cb0fc5caf75bf878b92c64d36817824765"
            },
            {
              "name": "Fix commit 2c29b28 in leandrocp/mdex",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags",
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild a Markdown string of \u003ccode\u003e\u0026lt;div\u0026gt;\u003c/code\u003e repeated 30,000 times followed by \u003ccode\u003e\u0026lt;/b\u0026gt;\u003c/code\u003e repeated 30,000 times (270,000 bytes).\u003c/li\u003e\n\u003cli\u003eRender it as one chunk with \u003ccode\u003eMDEx.stream(auto_close: false)\u003c/code\u003e and run the stream.\u003c/li\u003e\n\u003cli\u003eObserve about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for \u003ccode\u003eMDEx.to_html!/1\u003c/code\u003e on the same input. Doubling the input roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build a Markdown string of `\u003cdiv\u003e` repeated 30,000 times followed by `\u003c/b\u003e` repeated 30,000 times (270,000 bytes).\n2. Render it as one chunk with `MDEx.stream(auto_close: false)` and run the stream.\n3. Observe about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for `MDEx.to_html!/1` on the same input. Doubling the input roughly quadruples the time."
                }
              ],
              "value": "* Build a Markdown string of \u003cdiv\u003e repeated 30,000 times followed by \u003c/b\u003e repeated 30,000 times (270,000 bytes).\n* Render it as one chunk with MDEx.stream(auto_close: false) and run the stream.\n* Observe about 30 seconds of CPU on mdex 0.14.9, against a few milliseconds for MDEx.to_html!/1 on the same input. Doubling the input roughly quadruples the time."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Reachability.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e renders each chunk through \u003ccode\u003eemit_stream_source\u003c/code\u003e, \u003ccode\u003estream_source_blocks\u003c/code\u003e and \u003ccode\u003estream_node_groups\u003c/code\u003e in \u003ccode\u003elib/mdex.ex\u003c/code\u003e. \u003ccode\u003estream_node_groups\u003c/code\u003e calls \u003ccode\u003eMDEx.FragmentParser.continue_html_context/2\u003c/code\u003e on every parsed node, so every \u003ccode\u003eHtmlBlock\u003c/code\u003e and \u003ccode\u003eHtmlInline\u003c/code\u003e literal is scanned, whatever the \u003ccode\u003eauto_close\u003c/code\u003e and render \u003ccode\u003eunsafe\u003c/code\u003e settings are.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unbounded stack.\u003c/strong\u003e \u003ccode\u003escan_html\u003c/code\u003e pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Quadratic scan.\u003c/strong\u003e For each closing tag, \u003ccode\u003eclose_html_tag/2\u003c/code\u003e runs \u003ccode\u003eEnum.split_while/2\u003c/code\u003e over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2).\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Reachability.** `MDEx.stream/2` renders each chunk through `emit_stream_source`, `stream_source_blocks` and `stream_node_groups` in `lib/mdex.ex`. `stream_node_groups` calls `MDEx.FragmentParser.continue_html_context/2` on every parsed node, so every `HtmlBlock` and `HtmlInline` literal is scanned, whatever the `auto_close` and render `unsafe` settings are.\n\n**2. Unbounded stack.** `scan_html` pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\n\n**3. Quadratic scan.** For each closing tag, `close_html_tag/2` runs `Enum.split_while/2` over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2)."
                }
              ],
              "value": "1. Reachability. MDEx.stream/2 renders each chunk through emit_stream_source, stream_source_blocks and stream_node_groups in lib/mdex.ex. stream_node_groups calls MDEx.FragmentParser.continue_html_context/2 on every parsed node, so every HtmlBlock and HtmlInline literal is scanned, whatever the auto_close and render unsafe settings are.\n\n2. Unbounded stack. scan_html pushes every non-void, non-self-closing opening tag onto the context list with no size limit.\n\n3. Quadratic scan. For each closing tag, close_html_tag/2 runs Enum.split_while/2 over the whole list. When no matching opener exists, it returns the list unchanged, so every following unmatched closer walks the full list again. N openers followed by N unmatched closers cost O(N\u00b2)."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-134915",
        "datePublished": "2026-11-30T18:43:11.147Z",
        "dateReserved": "2026-11-30T16:56:06.346Z",
        "dateUpdated": "2026-12-03T18:13:26.736Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.