Junglewise Threat Intelligence

CVE-2026-65636: ufirstgroup ymlr CRLF injection in Elixir.Ymlr comments

CVE-2026-65636 · Severity: info · CVSS 2.1 · Published 2026-07-31

Executive brief

A vulnerability in the 'ymlr' Elixir library, which is used to generate YAML configuration files, allows attackers to inject malicious content into documents. By including line-break characters in what should be a simple comment, an attacker can trick the system into creating unauthorized configuration settings or splitting one document into many. This could lead to the corruption of deployment manifests, CI/CD pipelines, or other automated systems that rely on these generated files.

Technical details

The vulnerability exists in the Elixir.Ymlr module, specifically within the document/2, document!/2, documents/2, and documents!/2 functions. The library fails to properly neutralize or escape CRLF sequences (carriage returns and line feeds) in caller-supplied comment strings. Because YAML comments are terminated by line breaks, an attacker can use these characters to exit the comment context and inject arbitrary YAML at column 0 of the document body. This allows for the injection of top-level keys, overriding existing values, or using document markers (---) to split the output. The issue is fixed in version 5.1.6.

Affected products

  • ufirstgroup ymlr 0.0.1 to 5.1.5

Timeline

  • 2026-07-31: disclosed
  • 2026-07-31: advisory
  • 2026-07-31: patched

References