CVE-2026-53429Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated…
Missing Release of Memory after Effective Lifetime vulnerability in leandrocp mdex and mdex_native allows an attacker who controls a rendered document to cause a denial of service through unbounded native memory exhaustion. The native rendering code permanently leaks memory when rendering a document that contains escaped-tag nodes. The conversion of each %MDEx.EscapedTag{} node into its native representation (From<ExEscapedTag> for NodeValue in the Rust NIF) calls Box::leak on the caller-supplied literal string, which surrenders the backing allocation so that it lives for the entire lifetime of the operating system process and is never freed. Both the byte length of each literal and the number of escaped-tag nodes in a document are attacker-controlled, and there is no size cap, rate limit, or string interning on this path. Every render of a document containing escaped-tag nodes therefore leaks literal_size × node_count bytes that can never be reclaimed, and repeated renders accumulate without bound. Rendering reaches this path through the public MDEx.to_html/1 entry point and any other API that renders a supplied %MDEx.Document{}. Any application that uses mdex (or mdex_native directly) to render documents derived from user-supplied content is affected. Because the leaked memory is never reclaimed for the life of the BEAM process, an attacker can drive resident memory upward without limit until the node exhausts memory and crashes, taking down every process on it. The vulnerable native code originally shipped inside mdex (in native/comrak_nif/src/types/document.rs) and was later extracted into the separate mdex_native package (native/mdex_native_nif/src/types/document.rs). This issue affects mdex: from 0.11.1 before 0.12.3; mdex_native: from 0.1.0 before 0.2.3.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- leandrocp mdex: affected: 0.11.1 to before 0.12.3; fixed in
0.12.3 - leandrocp mdex: affected: 81e4d14dd3aa5b206e395c7f372b9b413793015f to before 6ed94d905f97af188323f042698ae841c02293b4; fixed in
6ed94d905f97af188323f042698ae841c02293b4 - leandrocp mdex_native: affected: 0.1.0 to before 0.2.3; fixed in
0.2.3 - leandrocp mdex_native: affected: 956528c5e31746253347029e810a969ab916fd27 to before cbd927fb5061b488de8d90a8ef6df65718ca1fe6
Vendor advisories:
- https://github.com/leandrocp/mdex_native/security/advisories/GHSA-cmvp-gp9f-23xw (vendor-advisory)
- https://github.com/leandrocp/mdex/commit/6ed94d905f97af188323f042698ae841c02293b4 (patch)
- https://github.com/leandrocp/mdex_native/commit/cbd927fb5061b488de8d90a8ef6df65718ca1fe6 (patch)
References
- https://github.com/leandrocp/mdex_native/security/advisories/GHSA-cmvp-gp9f-23xw
- https://cna.erlef.org/cves/CVE-2026-53429.html
- https://osv.dev/vulnerability/EEF-CVE-2026-53429
- https://github.com/leandrocp/mdex/commit/81e4d14dd3aa5b206e395c7f372b9b413793015f
- https://github.com/leandrocp/mdex/commit/6ed94d905f97af188323f042698ae841c02293b4
- https://github.com/leandrocp/mdex_native/commit/956528c5e31746253347029e810a969ab916fd27
- https://github.com/leandrocp/mdex_native/commit/cbd927fb5061b488de8d90a8ef6df65718ca1fe6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.