Exponential alias expansion in yaml_elixir exhausts memory
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
KamilLelonek yaml_elixir from 0.0.1 before 2.13.0 has a flaw (CWE-776) in YamlElixir.Mapper, where the mapper expands every YAML alias into a new copy of its anchored node. A YAML document with nested anchors and aliases makes the result grow exponentially with the nesting depth. An unauthenticated attacker who can supply a YAML document can exhaust the memory of the BEAM node. All YamlElixir.read_* functions are affected with their default options.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| KamilLelonek | yaml_elixir | 0.0.1 to before 2.13.0 | 2.13.0 | Patch available | CNA |
- yaml_elixir VendorKamilLelonek Affected 0.0.1 to before 2.13.0 Fixed in 2.13.0 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kamillelonek:yaml_elixir:*:*:*:*:*:*:*:* | — | — | KamilLelonek |
- cpe:2.3:a:kamillelonek:yaml_elixir:*:*:*:*:*:*:*:* Versions — — ·KamilLelonek
Remediation
Upgrade yaml_elixir to version 2.13.0 or later, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA yaml_elixir (KamilLelonek) Fixed in 2.13.0
Timeline
- 2026-12-04 Threatist record created from CVE-2026-140436
- 2026-12-04 Alias added: GHSA-9p7h-7wgp-w94m
References
Sources
- CVE-2026-140436 · CVE Program
- CVE-2026-140436 · NVD
- GHSA-9p7h-7wgp-w94m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences