{"id":"EEF-CVE-2026-53426","summary":"Atom-table exhaustion denial-of-service via JSON parse_document in MDEx","details":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation.\n\n`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.\n\nA 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.\n\nThis issue affects mdex: from 0.4.3 before 0.13.2.\n\n## Workarounds\n\nDo not pass untrusted or attacker-controlled input to the `{:json, ...}` source of `MDEx.parse_document/2`. The `{:markdown, ...}` source is not affected.","aliases":["CVE-2026-53426","GHSA-923r-7vf4-5vw8"],"modified":"2026-11-25T17:23:14.360294535Z","published":"2026-06-29T19:11:32.605Z","database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-130"],"cpe_ids":["cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-770"]},"references":[{"type":"ADVISORY","url":"https://github.com/leandrocp/mdex/security/advisories/GHSA-923r-7vf4-5vw8"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-53426.html"},{"type":"WEB","url":"https://github.com/leandrocp/mdex/commit/cbb59a3f792dbc343873adec3466f49c853dc309"},{"type":"FIX","url":"https://github.com/leandrocp/mdex/commit/00fddf444220a1f1cc0af0a1cab6738804878387"},{"type":"PACKAGE","url":"https://hex.pm/packages/mdex"}],"affected":[{"package":{"name":"mdex","ecosystem":"Hex","purl":"pkg:hex/mdex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.3"},{"fixed":"0.13.2"}]}],"versions":["0.10.0","0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.11.6","0.11.7","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5","0.13.0","0.13.1","0.4.3","0.5.0","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4"],"ecosystem_specific":{"program_files":["lib/mdex.ex"],"program_routines":["'Elixir.MDEx':parse_document/2","'Elixir.MDEx':json_to_node/1"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.MDEx'"]},"database_specific":{"modules":["'Elixir.MDEx'"],"program_files":["lib/mdex.ex"],"program_routines":["'Elixir.MDEx':parse_document/2","'Elixir.MDEx':json_to_node/1"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-53426.json","$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/leandrocp/mdex","events":[{"introduced":"cbb59a3f792dbc343873adec3466f49c853dc309"},{"fixed":"00fddf444220a1f1cc0af0a1cab6738804878387"}]}],"versions":["v0.13.1","v0.13.0","v0.12.5","v0.12.4","v0.12.3","v0.12.2","v0.12.1","v0.12.0","v0.11.7","v0.11.6","v0.11.5","v0.11.4","v0.11.3","v0.11.2","v0.11.1","v0.11.0","v0.10.0","v0.9.4","v0.9.3","v0.9.2","v0.9.1","v0.9.0","v0.8.6","v0.8.5","v0.8.4","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.5","v0.7.4","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.2","v0.6.1","v0.6.0","v0.5.0","v0.4.3"],"database_specific":{"program_files":["lib/mdex.ex"],"program_routines":["'Elixir.MDEx':parse_document/2","'Elixir.MDEx':json_to_node/1"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-53426.json","$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.MDEx'"]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","source":"CNA"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Leandro Pereira","type":"REMEDIATION_DEVELOPER"}]}