CVE-2026-53426
JSON

8.2high

Atom-table exhaustion denial-of-service via JSON parse_document in MDEx

Severity
8.2high CVSS:4.0 by EEF
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-53426GHSA-923r-7vf4-5vw8

Description

Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation. MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node. A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service. This issue affects mdex: from 0.4.3 before 0.13.2.

Affected

Product or packageVersionsReported by
mdexfrom 0.4.3 before 0.13.2CVE List
leandrocp/mdexfrom cbb59a3f792dbc343873adec3466f49c853dc309 before 00fddf444220a1f1cc0af0a1cab6738804878387CVE List
mdex (Hex)from 0.4.3 before 0.13.2Erlang Ecosystem Foundation
https://github.com/leandrocp/mdexfrom cbb59a3f792dbc343873adec3466f49c853dc309 before 00fddf444220a1f1cc0af0a1cab6738804878387Erlang Ecosystem Foundation

All scores

EEF8.2high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation. MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node. A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service. This issue affects mdex: from 0.4.3 before 0.13.2.

Erlang Ecosystem Foundation

Summary

Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation.

MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node.

A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service.

This issue affects mdex: from 0.4.3 before 0.13.2.

Workarounds

Do not pass untrusted or attacker-controlled input to the {:json, ...} source of MDEx.parse_document/2. The {:markdown, ...} source is not affected.

NVD (es)

Vulnerabilidad de Asignación de Recursos Sin Límites ni Limitación en leandrocp MDEx permite Asignación Excesiva. MDEx.parse_document/2 acepta una fuente {:json, json}. En lib/mdex.ex, la función privada json_to_node/1 pasa el valor node_type controlado por el atacante a Module.concat/1, que llama a String.to_atom/1 e interna un átomo completamente nuevo por cada valor distinto. Los átomos nunca se recolectan como basura en BEAM, por lo que un documento JSON manipulado que lleva un node_type único en cada nodo (profundamente anidado) crea un átomo permanente por nodo. Un solo documento puede internar cientos de miles de átomos, y un documento lo suficientemente grande agota la tabla de átomos predeterminada (alrededor de 1.048.576 átomos) y aborta toda la VM de Erlang, derribando cada proceso en el nodo. Cualquier aplicación que pase entrada no confiable a la fuente {:json, ...} de MDEx.parse_document está expuesta a una denegación de servicio no autenticada. Este problema afecta a mdex desde 0.4.3 antes de 0.13.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53426 changed 2026-11-20CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-53426 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-53426 changed 2026-11-20Public domain