PT-2026-163919
CVE-2026-135699
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 4.0
2.1
LowMetricsAV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/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
Name of the Vulnerable Software and Affected Versions
mdex versions 0.14.3 through 0.14.9
Description
An inefficient regular expression complexity issue allows an attacker to cause CPU exhaustion by providing crafted unterminated link or image labels. This occurs when an application uses the non-default
auto close: [links: :text] or auto close: [images: :text] policies. Specifically, the text label/1 function in MDEx.FragmentParser uses regular expressions that are anchored at only one end, leading to quadratic matching costs where the processing time grows with the square of the label line length or trailing tilde run. An attacker can exploit this by submitting specific Markdown content, such as user input or streamed LLM output, causing a single render of approximately 60 KB to consume tens of seconds of CPU time, potentially slowing or stalling the application.Recommendations
Update mdex to version 0.15.0 or later.
As a temporary workaround, avoid using the
auto close: [links: :text] or auto close: [images: :text] policies and instead use the default auto close: true policy.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾