PT-2026-163917
CVE-2026-134915
·
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/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.0 through 0.14.9
Description
An inefficient algorithmic complexity issue exists where an attacker providing crafted Markdown to the
MDEx.stream/2 endpoint can cause CPU exhaustion. The system tracks open HTML tags using the MDEx.FragmentParser.continue html context/2 function, pushing non-void opening tags onto an unbounded list. The close html tag/2 function then scans this entire list for each closing tag. If a closing tag has no matching opener, the list remains unchanged, forcing subsequent closing tags to scan the full list again. This results in quadratic O(N²) time complexity, where an input of approximately 270 KB can keep a scheduler busy for tens of seconds, potentially stalling the node if multiple concurrent requests are made.Recommendations
Update mdex to version 0.15.0 or later.
As a temporary workaround, avoid using the
MDEx.stream/2 function for rendering untrusted Markdown input. Found an issue in the description? Have something to add? Feel free to write us 👾