CVE-2026-135775 (GCVE-0-2026-135775)

Vulnerability from cvelistv5 – Published: 2026-11-30 18:45 – Updated: 2026-11-30 18:59
VLAI
Title
Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs
Summary
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses. When auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N²) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected. This issue affects mdex: from 0.14.2 before 0.15.0.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-30 18:59 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.2 , < 0.15.0 (semver)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
leandrocp mdex Affected: bea359152bc1f63f3256ee86ca207151b815940d , < 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af (git)
    cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Create a notification for this product.
Date Public
2026-11-30 18:45
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-135775",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-30T18:59:42.936491Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-11-30T18:59:54.741Z",
          "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:autolink_size/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:stream/2"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:to_html/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:autolink_size/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
            },
            {
              "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:stream/2"
            },
            {
              "name": "\u0027Elixir.MDEx\u0027:to_html/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 vulnerable code runs only when auto-close is active: in \u003ccode\u003eMDEx.stream/2\u003c/code\u003e, where \u003ccode\u003eauto_close\u003c/code\u003e defaults to \u003ccode\u003etrue\u003c/code\u003e; in \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e and the other renderers when called with \u003ccode\u003eauto_close: true\u003c/code\u003e; and in \u003ccode\u003eMDEx.Document\u003c/code\u003e streaming buffers with \u003ccode\u003eauto_close\u003c/code\u003e set. Rendering with the default options of \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e does not reach it.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "The vulnerable code runs only when auto-close is active: in `MDEx.stream/2`, where `auto_close` defaults to `true`; in `MDEx.to_html/2` and the other renderers when called with `auto_close: true`; and in `MDEx.Document` streaming buffers with `auto_close` set. Rendering with the default options of `MDEx.to_html/2` does not reach it."
            }
          ],
          "value": "The vulnerable code runs only when auto-close is active: in MDEx.stream/2, where auto_close defaults to true; in MDEx.to_html/2 and the other renderers when called with auto_close: true; and in MDEx.Document streaming buffers with auto_close set. Rendering with the default options of MDEx.to_html/2 does not reach it."
        }
      ],
      "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:38.000Z",
      "datePublic": "2026-11-30T18:45:06.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eInefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\u003c/p\u003e\n\u003cp\u003eWhen auto-close is active, \u003ccode\u003eMDEx.FragmentParser.autolink_size/2\u003c/code\u003e in \u003ccode\u003elib/mdex/fragment_parser.ex\u003c/code\u003e trims trailing \u003ccode\u003e)\u003c/code\u003e from a bare URL one byte at a time and recounts every \u003ccode\u003e(\u003c/code\u003e and \u003ccode\u003e)\u003c/code\u003e in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and \u003ccode\u003eMDEx.stream/2\u003c/code\u003e repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects mdex: from 0.14.2 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 rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\n\nWhen auto-close is active, `MDEx.FragmentParser.autolink_size/2` in `lib/mdex/fragment_parser.ex` trims trailing `)` from a bare URL one byte at a time and recounts every `(` and `)` in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and `MDEx.stream/2` repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\n\nThis issue affects mdex: from 0.14.2 before 0.15.0."
            }
          ],
          "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\n\nWhen auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\n\nThis issue affects mdex: from 0.14.2 before 0.15.0."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-130",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eAn attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "An attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node."
                }
              ],
              "value": "An attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node."
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "LOCAL",
            "baseScore": 5.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:P/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:45:07.891Z",
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF"
      },
      "references": [
        {
          "name": "EEF CNA record for CVE-2026-135775",
          "tags": [
            "related",
            "third-party-advisory"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-135775.html"
        },
        {
          "name": "OSV record EEF-CVE-2026-135775",
          "tags": [
            "related"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-135775"
        },
        {
          "name": "Introducing commit bea3591 in leandrocp/mdex",
          "tags": [
            "related"
          ],
          "url": "https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d"
        },
        {
          "name": "Fix commit 2c29b28 in leandrocp/mdex",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af"
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs",
      "workarounds": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eRender untrusted Markdown with auto-close disabled: pass \u003ccode\u003eauto_close: false\u003c/code\u003e to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e, and do not pass \u003ccode\u003eauto_close: true\u003c/code\u003e to \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e or the other renderers.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "Render untrusted Markdown with auto-close disabled: pass `auto_close: false` to `MDEx.stream/2`, and do not pass `auto_close: true` to `MDEx.to_html/2` or the other renderers."
            }
          ],
          "value": "Render untrusted Markdown with auto-close disabled: pass auto_close: false to MDEx.stream/2, and do not pass auto_close: true to MDEx.to_html/2 or the other renderers."
        }
      ],
      "x_proofOfConcept": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003col\u003e\n\u003cli\u003eBuild the input \u003ccode\u003e\"http://x\"\u003c/code\u003e followed by 15,000 \u003ccode\u003e)\u003c/code\u003e characters (about 15 KB).\u003c/li\u003e\n\u003cli\u003eRender it with \u003ccode\u003eMDEx.to_html!(markdown)\u003c/code\u003e: it completes in a few milliseconds.\u003c/li\u003e\n\u003cli\u003eRender the same input with \u003ccode\u003eMDEx.to_html!(markdown, auto_close: true)\u003c/code\u003e, or pass it as a single chunk to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e: rendering takes tens of seconds and holds a scheduler for the whole time.\u003c/li\u003e\n\u003cli\u003eDoubling the number of parentheses roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "1. Build the input `\"http://x\"` followed by 15,000 `)` characters (about 15 KB).\n2. Render it with `MDEx.to_html!(markdown)`: it completes in a few milliseconds.\n3. Render the same input with `MDEx.to_html!(markdown, auto_close: true)`, or pass it as a single chunk to `MDEx.stream/2`: rendering takes tens of seconds and holds a scheduler for the whole time.\n4. Doubling the number of parentheses roughly quadruples the time."
            }
          ],
          "value": "* Build the input \"http://x\" followed by 15,000 ) characters (about 15 KB).\n* Render it with MDEx.to_html!(markdown): it completes in a few milliseconds.\n* Render the same input with MDEx.to_html!(markdown, auto_close: true), or pass it as a single chunk to MDEx.stream/2: rendering takes tens of seconds and holds a scheduler for the whole time.\n* Doubling the number of parentheses roughly quadruples the time."
        }
      ],
      "x_technicalAnalysis": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003e\u003cstrong\u003e1. Reaching the trimmer.\u003c/strong\u003e With auto-close active, \u003ccode\u003eMDEx.FragmentParser.complete/2\u003c/code\u003e runs \u003ccode\u003ecomplete_inline/3\u003c/code\u003e, which calls \u003ccode\u003eunmatched_suffix/1\u003c/code\u003e. That masks bare URLs through \u003ccode\u003emask_urls/1\u003c/code\u003e and \u003ccode\u003emask_url_spans/4\u003c/code\u003e, and each URL span is measured with \u003ccode\u003eautolink_text/1\u003c/code\u003e. No extension needs to be enabled.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Quadratic trim.\u003c/strong\u003e \u003ccode\u003eautolink_size/2\u003c/code\u003e walks back from the end of the URL candidate. For every trailing \u003ccode\u003e)\u003c/code\u003e it takes the remaining prefix, counts all \u003ccode\u003e(\u003c/code\u003e and all \u003ccode\u003e)\u003c/code\u003e in it with \u003ccode\u003ecount_char/2\u003c/code\u003e, and if closers outnumber openers it drops one byte and recurses. A URL followed by N \u003ccode\u003e)\u003c/code\u003e therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Amplification.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "**1. Reaching the trimmer.** With auto-close active, `MDEx.FragmentParser.complete/2` runs `complete_inline/3`, which calls `unmatched_suffix/1`. That masks bare URLs through `mask_urls/1` and `mask_url_spans/4`, and each URL span is measured with `autolink_text/1`. No extension needs to be enabled.\n\n**2. Quadratic trim.** `autolink_size/2` walks back from the end of the URL candidate. For every trailing `)` it takes the remaining prefix, counts all `(` and all `)` in it with `count_char/2`, and if closers outnumber openers it drops one byte and recurses. A URL followed by N `)` therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\n\n**3. Amplification.** `MDEx.stream/2` re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size."
            }
          ],
          "value": "1. Reaching the trimmer. With auto-close active, MDEx.FragmentParser.complete/2 runs complete_inline/3, which calls unmatched_suffix/1. That masks bare URLs through mask_urls/1 and mask_url_spans/4, and each URL span is measured with autolink_text/1. No extension needs to be enabled.\n\n2. Quadratic trim. autolink_size/2 walks back from the end of the URL candidate. For every trailing ) it takes the remaining prefix, counts all ( and all ) in it with count_char/2, and if closers outnumber openers it drops one byte and recurses. A URL followed by N ) therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\n\n3. Amplification. MDEx.stream/2 re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size."
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "cveId": "CVE-2026-135775",
    "datePublished": "2026-11-30T18:45:07.891Z",
    "dateReserved": "2026-11-30T08:50:03.708Z",
    "dateUpdated": "2026-11-30T18:59:54.741Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-135775",
      "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:autolink_size/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:stream/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:to_html/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:autolink_size/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:stream/2"
                  },
                  {
                    "name": "\u0027Elixir.MDEx\u0027:to_html/2"
                  }
                ],
                "repo": "https://github.com/leandrocp/mdex",
                "vendor": "leandrocp",
                "versions": [
                  {
                    "lessThan": "2c29b28cd0473c24347aa00b95d16f9ce5f9d9af",
                    "status": "affected",
                    "version": "bea359152bc1f63f3256ee86ca207151b815940d",
                    "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 rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\n\nWhen auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\n\nThis issue affects mdex: from 0.14.2 before 0.15.0."
          }
        ],
        "id": "CVE-2026-135775",
        "lastModified": "2026-11-30T19:17:50.680",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 5.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:P/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-135775",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-30T18:59:42.936491Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-11-30T19:17:50.680",
        "references": [
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://cna.erlef.org/cves/CVE-2026-135775.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/bea359152bc1f63f3256ee86ca207151b815940d"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://osv.dev/vulnerability/EEF-CVE-2026-135775"
          }
        ],
        "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-135775",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-30T18:59:42.936491Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-30T18:59:47.667Z",
              "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:autolink_size/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:stream/2"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:to_html/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:autolink_size/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:autolink_text/1"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete/2"
                },
                {
                  "name": "\u0027Elixir.MDEx.FragmentParser\u0027:complete_with_state/3"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:stream/2"
                },
                {
                  "name": "\u0027Elixir.MDEx\u0027:to_html/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 vulnerable code runs only when auto-close is active: in \u003ccode\u003eMDEx.stream/2\u003c/code\u003e, where \u003ccode\u003eauto_close\u003c/code\u003e defaults to \u003ccode\u003etrue\u003c/code\u003e; in \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e and the other renderers when called with \u003ccode\u003eauto_close: true\u003c/code\u003e; and in \u003ccode\u003eMDEx.Document\u003c/code\u003e streaming buffers with \u003ccode\u003eauto_close\u003c/code\u003e set. Rendering with the default options of \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e does not reach it.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerable code runs only when auto-close is active: in `MDEx.stream/2`, where `auto_close` defaults to `true`; in `MDEx.to_html/2` and the other renderers when called with `auto_close: true`; and in `MDEx.Document` streaming buffers with `auto_close` set. Rendering with the default options of `MDEx.to_html/2` does not reach it."
                }
              ],
              "value": "The vulnerable code runs only when auto-close is active: in MDEx.stream/2, where auto_close defaults to true; in MDEx.to_html/2 and the other renderers when called with auto_close: true; and in MDEx.Document streaming buffers with auto_close set. Rendering with the default options of MDEx.to_html/2 does not reach it."
            }
          ],
          "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:38.000Z",
          "datePublic": "2026-11-30T18:45:06.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eInefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\u003c/p\u003e\n\u003cp\u003eWhen auto-close is active, \u003ccode\u003eMDEx.FragmentParser.autolink_size/2\u003c/code\u003e in \u003ccode\u003elib/mdex/fragment_parser.ex\u003c/code\u003e trims trailing \u003ccode\u003e)\u003c/code\u003e from a bare URL one byte at a time and recounts every \u003ccode\u003e(\u003c/code\u003e and \u003ccode\u003e)\u003c/code\u003e in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and \u003ccode\u003eMDEx.stream/2\u003c/code\u003e repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects mdex: from 0.14.2 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 rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\n\nWhen auto-close is active, `MDEx.FragmentParser.autolink_size/2` in `lib/mdex/fragment_parser.ex` trims trailing `)` from a bare URL one byte at a time and recounts every `(` and `)` in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and `MDEx.stream/2` repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\n\nThis issue affects mdex: from 0.14.2 before 0.15.0."
                }
              ],
              "value": "Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls rendered Markdown to cause a denial of service via a bare URL followed by many closing parentheses.\n\nWhen auto-close is active, MDEx.FragmentParser.autolink_size/2 in lib/mdex/fragment_parser.ex trims trailing ) from a bare URL one byte at a time and recounts every ( and ) in the remaining URL at each step, so a URL followed by N parentheses costs O(N\u00b2) work. Around 20 KB of input pins a scheduler for tens of seconds, and MDEx.stream/2 repeats the completion over the whole accumulated source for every chunk. No extension needs to be enabled. Rendering with auto-close disabled is not affected.\n\nThis issue affects mdex: from 0.14.2 before 0.15.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "supportingMedia": [
                    {
                      "base64": false,
                      "type": "text/html",
                      "value": "\u003cp\u003eAn attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node.\u003c/p\u003e"
                    },
                    {
                      "base64": false,
                      "type": "text/markdown",
                      "value": "An attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node."
                    }
                  ],
                  "value": "An attacker who can supply Markdown, or steer LLM output, that an application renders with auto-close can pin BEAM schedulers with a few kilobytes of input per request, delaying or denying service to every other user of the node."
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "baseScore": 5.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:P/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:45:07.891Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-135775",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-135775.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-135775",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-135775"
            },
            {
              "name": "Introducing commit bea3591 in leandrocp/mdex",
              "tags": [
                "related"
              ],
              "url": "https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d"
            },
            {
              "name": "Fix commit 2c29b28 in leandrocp/mdex",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af"
            }
          ],
          "source": {
            "discovery": "INTERNAL"
          },
          "title": "Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare URLs",
          "workarounds": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eRender untrusted Markdown with auto-close disabled: pass \u003ccode\u003eauto_close: false\u003c/code\u003e to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e, and do not pass \u003ccode\u003eauto_close: true\u003c/code\u003e to \u003ccode\u003eMDEx.to_html/2\u003c/code\u003e or the other renderers.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Render untrusted Markdown with auto-close disabled: pass `auto_close: false` to `MDEx.stream/2`, and do not pass `auto_close: true` to `MDEx.to_html/2` or the other renderers."
                }
              ],
              "value": "Render untrusted Markdown with auto-close disabled: pass auto_close: false to MDEx.stream/2, and do not pass auto_close: true to MDEx.to_html/2 or the other renderers."
            }
          ],
          "x_proofOfConcept": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003col\u003e\n\u003cli\u003eBuild the input \u003ccode\u003e\"http://x\"\u003c/code\u003e followed by 15,000 \u003ccode\u003e)\u003c/code\u003e characters (about 15 KB).\u003c/li\u003e\n\u003cli\u003eRender it with \u003ccode\u003eMDEx.to_html!(markdown)\u003c/code\u003e: it completes in a few milliseconds.\u003c/li\u003e\n\u003cli\u003eRender the same input with \u003ccode\u003eMDEx.to_html!(markdown, auto_close: true)\u003c/code\u003e, or pass it as a single chunk to \u003ccode\u003eMDEx.stream/2\u003c/code\u003e: rendering takes tens of seconds and holds a scheduler for the whole time.\u003c/li\u003e\n\u003cli\u003eDoubling the number of parentheses roughly quadruples the time.\u003c/li\u003e\n\u003c/ol\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "1. Build the input `\"http://x\"` followed by 15,000 `)` characters (about 15 KB).\n2. Render it with `MDEx.to_html!(markdown)`: it completes in a few milliseconds.\n3. Render the same input with `MDEx.to_html!(markdown, auto_close: true)`, or pass it as a single chunk to `MDEx.stream/2`: rendering takes tens of seconds and holds a scheduler for the whole time.\n4. Doubling the number of parentheses roughly quadruples the time."
                }
              ],
              "value": "* Build the input \"http://x\" followed by 15,000 ) characters (about 15 KB).\n* Render it with MDEx.to_html!(markdown): it completes in a few milliseconds.\n* Render the same input with MDEx.to_html!(markdown, auto_close: true), or pass it as a single chunk to MDEx.stream/2: rendering takes tens of seconds and holds a scheduler for the whole time.\n* Doubling the number of parentheses roughly quadruples the time."
            }
          ],
          "x_technicalAnalysis": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003e\u003cstrong\u003e1. Reaching the trimmer.\u003c/strong\u003e With auto-close active, \u003ccode\u003eMDEx.FragmentParser.complete/2\u003c/code\u003e runs \u003ccode\u003ecomplete_inline/3\u003c/code\u003e, which calls \u003ccode\u003eunmatched_suffix/1\u003c/code\u003e. That masks bare URLs through \u003ccode\u003emask_urls/1\u003c/code\u003e and \u003ccode\u003emask_url_spans/4\u003c/code\u003e, and each URL span is measured with \u003ccode\u003eautolink_text/1\u003c/code\u003e. No extension needs to be enabled.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Quadratic trim.\u003c/strong\u003e \u003ccode\u003eautolink_size/2\u003c/code\u003e walks back from the end of the URL candidate. For every trailing \u003ccode\u003e)\u003c/code\u003e it takes the remaining prefix, counts all \u003ccode\u003e(\u003c/code\u003e and all \u003ccode\u003e)\u003c/code\u003e in it with \u003ccode\u003ecount_char/2\u003c/code\u003e, and if closers outnumber openers it drops one byte and recurses. A URL followed by N \u003ccode\u003e)\u003c/code\u003e therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Amplification.\u003c/strong\u003e \u003ccode\u003eMDEx.stream/2\u003c/code\u003e re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "**1. Reaching the trimmer.** With auto-close active, `MDEx.FragmentParser.complete/2` runs `complete_inline/3`, which calls `unmatched_suffix/1`. That masks bare URLs through `mask_urls/1` and `mask_url_spans/4`, and each URL span is measured with `autolink_text/1`. No extension needs to be enabled.\n\n**2. Quadratic trim.** `autolink_size/2` walks back from the end of the URL candidate. For every trailing `)` it takes the remaining prefix, counts all `(` and all `)` in it with `count_char/2`, and if closers outnumber openers it drops one byte and recurses. A URL followed by N `)` therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\n\n**3. Amplification.** `MDEx.stream/2` re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size."
                }
              ],
              "value": "1. Reaching the trimmer. With auto-close active, MDEx.FragmentParser.complete/2 runs complete_inline/3, which calls unmatched_suffix/1. That masks bare URLs through mask_urls/1 and mask_url_spans/4, and each URL span is measured with autolink_text/1. No extension needs to be enabled.\n\n2. Quadratic trim. autolink_size/2 walks back from the end of the URL candidate. For every trailing ) it takes the remaining prefix, counts all ( and all ) in it with count_char/2, and if closers outnumber openers it drops one byte and recurses. A URL followed by N ) therefore performs N full scans of a string of length up to N, which is O(N\u00b2).\n\n3. Amplification. MDEx.stream/2 re-runs completion over the whole accumulated source for every chunk, so a payload delivered over many chunks multiplies the cost. None of the entry points limits input size."
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-135775",
        "datePublished": "2026-11-30T18:45:07.891Z",
        "dateReserved": "2026-11-30T08:50:03.708Z",
        "dateUpdated": "2026-11-30T18:59:54.741Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Workarounds

CNA · EEF
Render untrusted Markdown with auto-close disabled: pass auto_close: false to MDEx.stream/2, and do not pass auto_close: true to MDEx.to_html/2 or the other renderers.

Configurations

CNA · EEF
The vulnerable code runs only when auto-close is active: in MDEx.stream/2, where auto_close defaults to true; in MDEx.to_html/2 and the other renderers when called with auto_close: true; and in MDEx.Document streaming buffers with auto_close set. Rendering with the default options of MDEx.to_html/2 does not reach it.

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.