# CVE-2026-53429: Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-29T19:07:16.954Z
- Modified: 2026-11-26T17:23:06.143Z
- Also known as: EEF-CVE-2026-53429, GHSA-cmvp-gp9f-23xw
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- mdex: from 0.11.1 before 0.12.3
- leandrocp/mdex: from 81e4d14dd3aa5b206e395c7f372b9b413793015f before 6ed94d905f97af188323f042698ae841c02293b4
- mdex_native: from 0.1.0 before 0.2.3
- leandrocp/mdex_native: from 956528c5e31746253347029e810a969ab916fd27 before cbd927fb5061b488de8d90a8ef6df65718ca1fe6
- mdex (Hex): from 0.11.1 before 0.12.3
- mdex_native (Hex): from 0.1.0 before 0.2.3
- https://github.com/leandrocp/mdex: from 81e4d14dd3aa5b206e395c7f372b9b413793015f before 6ed94d905f97af188323f042698ae841c02293b4
- https://github.com/leandrocp/mdex_native: from 956528c5e31746253347029e810a969ab916fd27 before cbd927fb5061b488de8d90a8ef6df65718ca1fe6

## Every score

- EEF: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/leandrocp/mdex_native/security/advisories/GHSA-cmvp-gp9f-23xw> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-53429.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-53429> (related)
- <https://github.com/leandrocp/mdex/commit/81e4d14dd3aa5b206e395c7f372b9b413793015f> (related, web)
- <https://github.com/leandrocp/mdex/commit/6ed94d905f97af188323f042698ae841c02293b4> (fix, patch)
- <https://github.com/leandrocp/mdex_native/commit/956528c5e31746253347029e810a969ab916fd27> (related, web)
- <https://github.com/leandrocp/mdex_native/commit/cbd927fb5061b488de8d90a8ef6df65718ca1fe6> (fix, patch)
- <https://hex.pm/packages/mdex> (package)
- <https://hex.pm/packages/mdex_native> (package)

## Sources

- CVE List: [CVE-2026-53429](https://www.cve.org/CVERecord?id=CVE-2026-53429), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-53429](https://osv.dev/vulnerability/EEF-CVE-2026-53429), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-53429](https://nvd.nist.gov/vuln/detail/CVE-2026-53429), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-53429 · Whole record: https://cve.day/CVE-2026-53429.json · Rebuilt by cve.day 2026-11-26T17:37:07.512Z
