PT-2026-163916
CVE-2026-131906
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 4.0
6.9
MediumMetricsAV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
mdex versions 0.13.1 through 0.14.x
Description
An inefficient algorithmic complexity issue allows an attacker to cause a denial of service through excessive CPU consumption. This occurs when crafted nested block quotes are passed to the
MDEx.to slack/2 or MDEx.to slack!/2 endpoints. The render quote/2 function in lib/mdex/slack converter.ex processes the child subtree of a block quote by rendering it to a binary, splitting it on newlines, and rejoining it with a > prefix at every nesting level. Because block quote depth is not limited, an input with d leading > characters and m lazy-continuation lines ending in a backslash hard break results in processing time proportional to d²·m. For example, a 16 KB message can consume approximately 16 seconds of CPU and generate 32 MB of output, with costs increasing eightfold as the input size doubles. This can lead to scheduler occupation and high memory allocation, degrading or denying service to other users.Recommendations
Update mdex to version 0.15.0 or later.
As a temporary workaround, avoid using the
MDEx.to slack/2 and MDEx.to slack!/2 functions to convert untrusted Markdown. Found an issue in the description? Have something to add? Feel free to write us 👾