Uncontrolled Recursion Vulnerability in MDEx by leandrocp
CVE-2026-54888
What is CVE-2026-54888?
The MDEx library is impacted by an uncontrolled recursion vulnerability that allows attackers to exploit deeply nested Markdown input, resulting in a denial of service. The underlying issue arises from the absence of a maximum nesting depth in the Rust functions processing the Markdown, leading to unbounded recursion. When an attacker crafts a Markdown document with extensive nesting of block quotes, it results in a stack overflow that cannot be handled by the Erlang runtime, causing the termination of the BEAM process and affecting all Elixir and Erlang processes on the node. This vulnerability is not limited by authentication or user privileges, making it a significant risk for all users of the affected versions.
Affected Version(s)
mdex 0.3.0 < 0.12.3
mdex d0bc7d55177727c61d188ef465178ab3b81f4f2c < 6ed94d905f97af188323f042698ae841c02293b4
mdex_native 0.1.0 < 0.2.3
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
