PT-2026-163924
CVE-2026-137162
·
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
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
auto close: true or via the MDEx.stream/2 function. The MDEx.FragmentParser checks if the last paragraph ends in an incomplete link reference definition; if the paragraph contains >, the expand quote prefix/2 function in lib/mdex/fragment parser.ex expands the leading quote prefix. Because this function is body-recursive and copies the prefix for every leading space, tab, or >, a line of N bytes results in O(N²) complexity. Since the prefix length is unbounded, an attacker can provide a single line containing several hundred kilobytes of > characters to exhaust CPU resources and tie up a scheduler for several seconds, degrading performance for other users.Recommendations
Update mdex to version 0.15.0 or later.
As a temporary workaround, disable the
auto close option when rendering Markdown or avoid using the MDEx.stream/2 function. Found an issue in the description? Have something to add? Feel free to write us 👾