Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-134915— Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags

Quick assessment

Affected
leandrocp mdex
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在 leandrocp 的 mdex 中存在非高效算法复杂度漏洞:攻击者能够控制传入 的 Markdown,并通过未匹配的 HTML 闭合标签耗尽 CPU。 使用 跟踪开放的 HTML 标签,其位置在 。每个非 void 开放标签都会被推入一个无上界的列表,而 会为每个闭合标签扫描整个该列表。若某个闭合标签没有匹配的开放标签,列表保持不变,因此下一个闭合标签会再次扫描该列表。因此,一段包含 N 个开放标签后跟 N 个未匹配闭合标签的 HTML 块会导致 O(N²) 的复杂度;约 270 KB 的输入即可使一个调度器

CVSS 6.9 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-134915

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing tags
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
算法复杂性
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
leandrocp mdex 0.14.0 ~ 0.15.0 cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
leandrocp mdex a88793cb0fc5caf75bf878b92c64d36817824765 ~ 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-134915

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-134915

请登录查看更多情报信息。

Other References for CVE-2026-134915 (4)

Same Patch Batch · leandrocp · 2026-11-30 · 10 CVEs total

CVE-2026-134916 6.9 MEDIUM Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes
CVE-2026-131906 6.9 MEDIUM Cubic-time nested block quote rendering in MDEx to_slack enables CPU denial of service
CVE-2026-135775 5.9 MEDIUM Quadratic CPU consumption in mdex auto-close trimming of trailing parentheses after bare U
CVE-2026-136268 5.1 MEDIUM Code block fence breakout in MDEx to_slack/2 allows Slack mention and link injection
CVE-2026-129522 2.1 LOW Quadratic rescanning in MDEx auto-close link scanner allows CPU denial of service
CVE-2026-137162 2.1 LOW Quadratic CPU consumption in mdex auto-close block quote prefix expansion
CVE-2026-136129 2.1 LOW Dangerous URL filter bypass via control characters in MDEx Quill Delta output (XSS)
CVE-2026-136130 2.1 LOW Slack mention injection through link destinations in MDEx.to_slack/2
CVE-2026-135699 2.1 LOW Quadratic regular expression scans in MDEx auto_close text policy allow CPU denial of serv

IV. Related Vulnerabilities