CVE-2026-140436
Published:December 04, 2026
Updated:December 04, 2026
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.
Affected Packages
https://github.com/KamilLelonek/yaml-elixir.git (GITHUB):
Affected version(s) >=v1.1 <v2.13.0 || >=v2.0.0 <v2.13.0Fix Suggestion:
Update to version v2.13.0yaml_elixir (HEX):
Affected version(s) >=1.0.0 <2.13.0 || >=2.0.0 <2.13.0 || =0.0.1 <2.13.0Fix Suggestion:
Update to version 2.13.0Related Resources (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.2
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Improper Restriction of Recursive Entity References in DTDs
EPSS
Base Score:
0.25