CVE-2026-140436
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. yamerl 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. This issue affects yaml_elixir: from 0.0.1 before 2.13.0.
- Severity
- MEDIUMCVSS 6.9
- Priority
- P4: Lower exploitation likelihood
- Exploit prediction (EPSS)
- —
- CISA KEV
- Not listed as known exploited
- First reported
- 4 December 2026
Is CVE-2026-140436 on your systems?
Sign in to get an AI-assisted analysis, a read-only verification script for your servers, and alerts when this CVE changes or is exploited.
References
- https://cna.erlef.org/cves/CVE-2026-140436.html
- https://github.com/KamilLelonek/yaml-elixir/commit/add27450860201caf63ea445a1e6f00ce8267250
- https://github.com/KamilLelonek/yaml-elixir/commit/dd8e152738f2396c16bf537267fe0f4ce66cada4
- https://github.com/KamilLelonek/yaml-elixir/security/advisories/GHSA-598v-rvxm-fcp8
- https://osv.dev/vulnerability/EEF-CVE-2026-140436
Look up another CVE
Sources: NVD, CISA Known Exploited Vulnerabilities catalog and FIRST EPSS. Official CVE record · NVD entry