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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-131906— Cubic-time nested block quote rendering in MDEx to_slack enables CPU denial of service

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.

不高效算法复杂度漏洞(Inefficient Algorithmic Complexity):在 leandrocp 的 mdex 中,攻击者可通过构造嵌套块引用并传给 ,导致拒绝服务(DoS),表现为过度 CPU 消耗。 在 中, 会将块引用的整棵子树渲染为二进制,再在换行处拆分并用 前缀重新拼接,并在每一层嵌套中重复这一过程。块引用深度未受限制,因此输入若带有 d 个前导 字符,后接 m 行 lazy-continuation 行且以反斜杠硬换行结束,其成本将与 d²·m 成比例增长。16 KB 的消息约需 1

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

I. Basic Information for CVE-2026-131906

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
Cubic-time nested block quote rendering in MDEx to_slack enables CPU denial of service
Source: CVE Program / CVE List V5
Vulnerability Description
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker to cause a denial of service through excessive CPU consumption via crafted nested block quotes passed to MDEx.to_slack/2. render_quote/2 in lib/mdex/slack_converter.ex renders the whole child subtree of a block quote to a binary, splits it on newlines and rejoins it with a > prefix, and repeats this at every nesting level. Block quote depth is not limited, so an input with d leading > characters followed by m lazy-continuation lines ending in a backslash hard break costs time proportional to d²·m. A 16 KB message takes about 16 seconds of CPU and produces 32 MB of output, and the cost grows about eightfold each time the input doubles. Any application that converts untrusted Markdown with MDEx.to_slack/2 or MDEx.to_slack!/2 is affected. This issue affects mdex: from 0.13.1 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.13.1 ~ 0.15.0 cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
leandrocp mdex 0be090a78dbe587a90814a7481b039d10996863c ~ 22a0c7b6614f84648e72699f3e426f20b7f04ba6 cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-131906

# 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-131906

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

Other References for CVE-2026-131906 (4)

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

CVE-2026-134915 6.9 MEDIUM Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion via unmatched closing t
CVE-2026-134916 6.9 MEDIUM Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes
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