CVE-2026-129522 (GCVE-0-2026-129522)
Vulnerability from cvelistv5 – Published: 2026-11-30 18:45 – Updated: 2026-11-30 18:59- CWE-407 - Inefficient Algorithmic Complexity
| URL | Tags |
|---|---|
| https://cna.erlef.org/cves/CVE-2026-129522.html | relatedthird-party-advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-129522 | related |
| https://github.com/leandrocp/mdex/commit/bea35915… | related |
| https://github.com/leandrocp/mdex/commit/2c29b28c… | patch |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129522",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-30T18:59:25.419476Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T18:59:32.097Z",
"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_bracket/5"
},
{
"name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_after_link/2"
},
{
"name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/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.2",
"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_bracket/5"
},
{
"name": "\u0027Elixir.MDEx.FragmentParser\u0027:continue_after_link/2"
},
{
"name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
},
{
"name": "\u0027Elixir.MDEx\u0027:stream/2"
}
],
"repo": "https://github.com/leandrocp/mdex",
"vendor": "leandrocp",
"versions": [
{
"lessThan": "2c29b28cd0473c24347aa00b95d16f9ce5f9d9af",
"status": "affected",
"version": "bea359152bc1f63f3256ee86ca207151b815940d",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must render untrusted Markdown with auto-closing enabled: through \u003ccode\u003eMDEx.stream/2\u003c/code\u003e, where it is on unless \u003ccode\u003eauto_close: false\u003c/code\u003e is passed, or with the \u003ccode\u003eauto_close\u003c/code\u003e option set on a document. Rendering with the default options of \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e and \u003ccode\u003eMDEx.parse_document/2\u003c/code\u003e does not run the affected scanner.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must render untrusted Markdown with auto-closing enabled: through `MDEx.stream/2`, where it is on unless `auto_close: false` is passed, or with the `auto_close` option set on a document. Rendering with the default options of `MDEx.to_html/2` and `MDEx.parse_document/2` does not run the affected scanner."
}
],
"value": "The application must render untrusted Markdown with auto-closing enabled: through MDEx.stream/2, where it is on unless auto_close: false is passed, or with the auto_close option set on a document. Rendering with the default options of MDEx.to_html/2 and MDEx.parse_document/2 does not run the affected scanner."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*",
"versionEndExcluding": "0.15.0",
"versionStartIncluding": "0.14.2",
"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:55:34.000Z",
"datePublic": "2026-11-30T18:45:20.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eInefficient Algorithmic Complexity vulnerability in \u003ccode\u003eMDEx.FragmentParser\u003c/code\u003e in leandrocp mdex allows an attacker who controls streamed or auto-closed Markdown to cause a denial of service through CPU exhaustion. Any application that renders untrusted Markdown with \u003ccode\u003eMDEx.stream/2\u003c/code\u003e or the \u003ccode\u003eauto_close\u003c/code\u003e option is affected, for example live previews or streamed LLM output.\u003c/p\u003e\n\u003cp\u003eWhile auto-closing the last paragraph, \u003ccode\u003eclose_bracket/5\u003c/code\u003e in \u003ccode\u003elib/mdex/fragment_parser.ex\u003c/code\u003e runs an unbounded forward scan of the link tail for every \u003ccode\u003e](\u003c/code\u003e. When that scan finds no valid link, scanning resumes just after the \u003ccode\u003e]\u003c/code\u003e, so the next \u003ccode\u003e](\u003c/code\u003e rescans the same tail. Each closed link also re-filters every pending image opener. Repeated \u003ccode\u003e[](x (\u003c/code\u003e, \u003ccode\u003e[](x(\u003c/code\u003e, or \u003ccode\u003e z\u003c/code\u003e (about 120 KB, no blank line).\u003c/li\u003e\n\u003cli\u003ePass it as one chunk to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e and consume the stream.\u003c/li\u003e\n\u003cli\u003eObserve the call take over ten seconds, while \u003ccode\u003eMDEx.to_html!/1\u003c/code\u003e on the same input returns in about 10 ms. Doubling the input roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Build a single paragraph of 20,000 repetitions of `[](x (` followed by `) z` (about 120 KB, no blank line).\n2. Pass it as one chunk to `MDEx.stream/2` and consume the stream.\n3. Observe the call take over ten seconds, while `MDEx.to_html!/1` on the same input returns in about 10 ms. Doubling the input roughly quadruples the time."
}
],
"value": "* Build a single paragraph of 20,000 repetitions of [](x ( followed by ) z (about 120 KB, no blank line).\n* Pass it as one chunk to MDEx.stream/2 and consume the stream.\n* Observe the call take over ten seconds, while MDEx.to_html!/1 on the same input returns in about 10 ms. Doubling the input roughly quadruples the time."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Entry.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e (auto-close on by default) and documents with \u003ccode\u003eauto_close\u003c/code\u003e call \u003ccode\u003eMDEx.FragmentParser.complete/2\u003c/code\u003e, which reaches \u003ccode\u003eincomplete_paragraph_link/5\u003c/code\u003e and \u003ccode\u003eopen_link/5\u003c/code\u003e for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Rescan.\u003c/strong\u003e For every \u003ccode\u003e](\u003c/code\u003e, \u003ccode\u003eclose_bracket/5\u003c/code\u003e calls \u003ccode\u003elink_tail/2\u003c/code\u003e, which scans forward without bound through \u003ccode\u003ebare_destination/3\u003c/code\u003e, \u003ccode\u003elink_title_end/4\u003c/code\u003e and \u003ccode\u003elink_close/2\u003c/code\u003e. When the tail is \u003ccode\u003e:invalid\u003c/code\u003e, \u003ccode\u003econtinue_after_link/2\u003c/code\u003e resumes just after the \u003ccode\u003e]\u003c/code\u003e, so the next \u003ccode\u003e](\u003c/code\u003e rescans the same tail. An unterminated title (\u003ccode\u003e[](x (\u003c/code\u003e repeated) or nested parentheses (\u003ccode\u003e[](x(\u003c/code\u003e repeated) makes every scan run to the end of the paragraph.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Opener filtering.\u003c/strong\u003e Each closed link runs \u003ccode\u003eEnum.filter/2\u003c/code\u003e over every pending opener to keep only images. With \u003ccode\u003e and documents with `auto_close` call `MDEx.FragmentParser.complete/2`, which reaches `incomplete_paragraph_link/5` and `open_link/5` for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\n\n**2. Rescan.** For every `](`, `close_bracket/5` calls `link_tail/2`, which scans forward without bound through `bare_destination/3`, `link_title_end/4` and `link_close/2`. When the tail is `:invalid`, `continue_after_link/2` resumes just after the `]`, so the next `](` rescans the same tail. An unterminated title (`[](x (` repeated) or nested parentheses (`[](x(` repeated) makes every scan run to the end of the paragraph.\n\n**3. Opener filtering.** Each closed link runs `Enum.filter/2` over every pending opener to keep only images. With ` and documents with auto_close call MDEx.FragmentParser.complete/2, which reaches incomplete_paragraph_link/5 and open_link/5 for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\n\n2. Rescan. For every ](, close_bracket/5 calls link_tail/2, which scans forward without bound through bare_destination/3, link_title_end/4 and link_close/2. When the tail is :invalid, continue_after_link/2 resumes just after the ], so the next ]( rescans the same tail. An unterminated title ([](x ( repeated) or nested parentheses ([](x( repeated) makes every scan run to the end of the paragraph.\n\n3. Opener filtering. Each closed link runs Enum.filter/2 over every pending opener to keep only images. With  z\u003c/code\u003e (about 120 KB, no blank line).\u003c/li\u003e\n\u003cli\u003ePass it as one chunk to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e and consume the stream.\u003c/li\u003e\n\u003cli\u003eObserve the call take over ten seconds, while \u003ccode\u003eMDEx.to_html!/1\u003c/code\u003e on the same input returns in about 10 ms. Doubling the input roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Build a single paragraph of 20,000 repetitions of `[](x (` followed by `) z` (about 120 KB, no blank line).\n2. Pass it as one chunk to `MDEx.stream/2` and consume the stream.\n3. Observe the call take over ten seconds, while `MDEx.to_html!/1` on the same input returns in about 10 ms. Doubling the input roughly quadruples the time."
}
],
"value": "* Build a single paragraph of 20,000 repetitions of [](x ( followed by ) z (about 120 KB, no blank line).\n* Pass it as one chunk to MDEx.stream/2 and consume the stream.\n* Observe the call take over ten seconds, while MDEx.to_html!/1 on the same input returns in about 10 ms. Doubling the input roughly quadruples the time."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Entry.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e (auto-close on by default) and documents with \u003ccode\u003eauto_close\u003c/code\u003e call \u003ccode\u003eMDEx.FragmentParser.complete/2\u003c/code\u003e, which reaches \u003ccode\u003eincomplete_paragraph_link/5\u003c/code\u003e and \u003ccode\u003eopen_link/5\u003c/code\u003e for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Rescan.\u003c/strong\u003e For every \u003ccode\u003e](\u003c/code\u003e, \u003ccode\u003eclose_bracket/5\u003c/code\u003e calls \u003ccode\u003elink_tail/2\u003c/code\u003e, which scans forward without bound through \u003ccode\u003ebare_destination/3\u003c/code\u003e, \u003ccode\u003elink_title_end/4\u003c/code\u003e and \u003ccode\u003elink_close/2\u003c/code\u003e. When the tail is \u003ccode\u003e:invalid\u003c/code\u003e, \u003ccode\u003econtinue_after_link/2\u003c/code\u003e resumes just after the \u003ccode\u003e]\u003c/code\u003e, so the next \u003ccode\u003e](\u003c/code\u003e rescans the same tail. An unterminated title (\u003ccode\u003e[](x (\u003c/code\u003e repeated) or nested parentheses (\u003ccode\u003e[](x(\u003c/code\u003e repeated) makes every scan run to the end of the paragraph.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Opener filtering.\u003c/strong\u003e Each closed link runs \u003ccode\u003eEnum.filter/2\u003c/code\u003e over every pending opener to keep only images. With \u003ccode\u003e and documents with `auto_close` call `MDEx.FragmentParser.complete/2`, which reaches `incomplete_paragraph_link/5` and `open_link/5` for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\n\n**2. Rescan.** For every `](`, `close_bracket/5` calls `link_tail/2`, which scans forward without bound through `bare_destination/3`, `link_title_end/4` and `link_close/2`. When the tail is `:invalid`, `continue_after_link/2` resumes just after the `]`, so the next `](` rescans the same tail. An unterminated title (`[](x (` repeated) or nested parentheses (`[](x(` repeated) makes every scan run to the end of the paragraph.\n\n**3. Opener filtering.** Each closed link runs `Enum.filter/2` over every pending opener to keep only images. With ` and documents with auto_close call MDEx.FragmentParser.complete/2, which reaches incomplete_paragraph_link/5 and open_link/5 for the last paragraph. Scanning stops at a blank line, so an attacker who never sends one keeps the whole input in scope.\n\n2. Rescan. For every ](, close_bracket/5 calls link_tail/2, which scans forward without bound through bare_destination/3, link_title_end/4 and link_close/2. When the tail is :invalid, continue_after_link/2 resumes just after the ], so the next ]( rescans the same tail. An unterminated title ([](x ( repeated) or nested parentheses ([](x( repeated) makes every scan run to the end of the paragraph.\n\n3. Opener filtering. Each closed link runs Enum.filter/2 over every pending opener to keep only images. With , 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.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.