cvelo
P3 · MediumCVSS 6.9EPSS 0.2%

yaml_elixir: exponential alias expansion in YamlElixir.Mapper allows memory exhaustion

  • CVE-2026-140436
  • GHSA-9p7h-7wgp-w94m
  • EUVD-2026-144051

Summary

CVE-2026-140436 is a resource exhaustion flaw in the yaml_elixir library, where YamlElixir.Mapper.process/2 builds a new copy of an anchored node for every alias reference. Because nested anchors and aliases cause the result to grow exponentially with nesting depth, a small crafted YAML document can exhaust the memory of the BEAM node. All YamlElixir.read_* functions are affected under their default options. The issue affects versions from 0.0.1 before 2.13.0, so teams using yaml_elixir to parse untrusted YAML should plan to upgrade. The advisory is rated CVSS 6.9 and is not listed in the CISA known exploited vulnerabilities catalog.

AI summary · verify against the vendor advisory

Description

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.

Text from the CVE.org record.

Recommendation

  • KamilLelonek yaml_elixir

    • If you run a version from 0.0.1 to before 2.13.0update to 2.13.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • KamilLelonek yaml_elixir

    Affected versionsFixed in
    from 0.0.1 to before 2.13.02.13.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.