{"id":"CVE-2026-140436","summary":"yaml_elixir: exponential alias expansion in YamlElixir.Mapper allows memory exhaustion","details":"Improper Restriction of Recursive Entity References vulnerability in YamlElixir.Mapper in KamilLelonek yaml_elixir allows an attacker to exhaust the memory of the BEAM node via a YAML document with nested anchors and aliases.\n\nyamerl resolves each alias to the term of its anchor, so the parsed document stays as small as the input. YamlElixir.Mapper.process/2 in lib/yaml_elixir/mapper.ex walks that document as a tree and builds a new copy of the anchored node for every alias. With nested anchors, the size of the result grows exponentially with the nesting depth. All YamlElixir.read_* functions are affected with their default options.\n\nThis issue affects yaml_elixir: from 0.0.1 before 2.13.0.","aliases":["EEF-CVE-2026-140436","GHSA-598v-rvxm-fcp8"],"modified":"2026-12-04T08:00:09.233281210Z","published":"2026-12-04T06:31:06.132Z","database_specific":{"cna_assigner":"EEF","cwe_ids":["CWE-776"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140436.json"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-140436.html"},{"type":"WEB","url":"https://github.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140436.json"},{"type":"PACKAGE","url":"https://github.com/KamilLelonek/yaml-elixir"},{"type":"FIX","url":"https://github.com/KamilLelonek/yaml-elixir/commit/add27450860201caf63ea445a1e6f00ce8267250"},{"type":"FIX","url":"https://github.com/KamilLelonek/yaml-elixir/commit/dd8e152738f2396c16bf537267fe0f4ce66cada4"},{"type":"ADVISORY","url":"https://github.com/KamilLelonek/yaml-elixir/security/advisories/GHSA-598v-rvxm-fcp8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140436"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-140436"},{"type":"WEB","url":"https://repo.hex.pm"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/KamilLelonek/yaml-elixir","events":[{"introduced":"dd8e152738f2396c16bf537267fe0f4ce66cada4"},{"fixed":"add27450860201caf63ea445a1e6f00ce8267250"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"dd8e152738f2396c16bf537267fe0f4ce66cada4"},{"fixed":"add27450860201caf63ea445a1e6f00ce8267250"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v2.12.2","v2.12.0","v2.8.0","v2.7.0","v2.4.0","v2.1.0","v2.0.1","v2.0.0","v1.4.0","v1.3.1","v1.3.0","v1.2.2","v1.2.0","v1.1.0","v1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140436.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/kamillelonek/yaml-elixir","events":[{"introduced":"0"},{"fixed":"e0462a2660645ab30987f0f730d0b25eaf810669"},{"fixed":"dd8e152738f2396c16bf537267fe0f4ce66cada4"},{"fixed":"add27450860201caf63ea445a1e6f00ce8267250"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0.0.1"},{"fixed":"2.13.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"dd8e152738f2396c16bf537267fe0f4ce66cada4"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"add27450860201caf63ea445a1e6f00ce8267250"}]}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140436.json"}}],"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:N"}]}