PT-2026-163920
CVE-2026-135775
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 4.0
5.9
MediumMetricsAV:L/AC:L/AT:P/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.14.2 through 0.14.x
Description
An inefficient algorithmic complexity issue exists when rendering Markdown with the auto-close feature active. An attacker can cause a denial of service by providing a bare URL followed by a large number of closing parentheses. This occurs because the
autolink size/2 function in lib/mdex/fragment parser.ex trims trailing parentheses one byte at a time and recounts all parentheses in the remaining URL at each step, resulting in O(N²) computational work. Additionally, the MDEx.stream/2 function repeats this process over the entire accumulated source for every chunk, further amplifying the resource consumption. Approximately 20 KB of input can pin a scheduler for tens of seconds, potentially delaying or denying service to other users on the node.Recommendations
Update mdex to version 0.15.0.
As a temporary workaround, render untrusted Markdown with auto-close disabled by passing
auto close: false to MDEx.stream/2 and avoiding the use of auto close: true in MDEx.to html/2 or other renderers. Found an issue in the description? Have something to add? Feel free to write us 👾