CVE-2026-65636: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in ufirstgroup ymlr
Improper Neutralization of CRLF Sequences vulnerability in ufirstgroup ymlr (Elixir.Ymlr module) allows attackers to inject arbitrary content into generated YAML documents through document comments. Ymlr.document!/2 interpolates each caller-supplied comment string into the output behind a single # prefix without validating it or escaping line breaks. Because a YAML comment is terminated by a line break, the first carriage return or line feed in the comment string ends the comment context and everything after it is emitted at column 0 of the document body. An attacker who controls text that the host application passes as a comment can forge top-level mapping keys, override values the application itself set, and emit --- or ... markers that split the output into additional documents. Downstream consumers of the generated YAML, such as configuration loaders, deployment manifests, CI pipelines and data importers, parse the injected content as legitimate data. The same clause backs Ymlr.document/2, Ymlr.documents!/2 and Ymlr.documents/2, so every document encoding entry point is affected. This vulnerability is associated with program files lib/ymlr.ex and program routines 'Elixir.Ymlr':document!/2, 'Elixir.Ymlr':documents!/2. This issue affects ymlr from 0.0.1 before 5.1.6.
AI Analysis
Technical Summary
The vulnerability arises because Ymlr.document!/2 and related functions interpolate user-supplied comment strings directly into YAML output behind a single # prefix without validating or escaping line breaks. Since YAML comments end at the first line break, an attacker can inject carriage return or line feed characters to terminate the comment early and inject arbitrary YAML content at the document root level. This can manipulate the structure and content of the YAML output, potentially impacting downstream consumers such as configuration loaders or CI pipelines. The issue affects ymlr versions >=0.0.1 and <5.1.6.
Potential Impact
An attacker who controls comment text passed to the ymlr library can inject arbitrary YAML content into generated documents. This can lead to forged or overridden YAML keys and values, and splitting the document into multiple YAML documents. Downstream systems that parse these YAML documents may process the injected content as legitimate data, potentially causing unintended behavior or configuration changes. The CVSS 4.0 base score is 2.1, indicating low severity with limited attack vector (local) and partial impact on integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a fix is available, avoid passing untrusted or attacker-controlled strings as comments to the ymlr document generation functions. Validate or sanitize comment inputs to remove CRLF characters or other control characters that could terminate comments prematurely.
CVE-2026-65636: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in ufirstgroup ymlr
Description
Improper Neutralization of CRLF Sequences vulnerability in ufirstgroup ymlr (Elixir.Ymlr module) allows attackers to inject arbitrary content into generated YAML documents through document comments. Ymlr.document!/2 interpolates each caller-supplied comment string into the output behind a single # prefix without validating it or escaping line breaks. Because a YAML comment is terminated by a line break, the first carriage return or line feed in the comment string ends the comment context and everything after it is emitted at column 0 of the document body. An attacker who controls text that the host application passes as a comment can forge top-level mapping keys, override values the application itself set, and emit --- or ... markers that split the output into additional documents. Downstream consumers of the generated YAML, such as configuration loaders, deployment manifests, CI pipelines and data importers, parse the injected content as legitimate data. The same clause backs Ymlr.document/2, Ymlr.documents!/2 and Ymlr.documents/2, so every document encoding entry point is affected. This vulnerability is associated with program files lib/ymlr.ex and program routines 'Elixir.Ymlr':document!/2, 'Elixir.Ymlr':documents!/2. This issue affects ymlr from 0.0.1 before 5.1.6.
CVSS v4.0
Score 2.1low
Affected software
ufirstgroup
ymlr
ufirstgroup
ymlr
cpe:2.3:a:ufirstgroup:ymlr:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because Ymlr.document!/2 and related functions interpolate user-supplied comment strings directly into YAML output behind a single # prefix without validating or escaping line breaks. Since YAML comments end at the first line break, an attacker can inject carriage return or line feed characters to terminate the comment early and inject arbitrary YAML content at the document root level. This can manipulate the structure and content of the YAML output, potentially impacting downstream consumers such as configuration loaders or CI pipelines. The issue affects ymlr versions >=0.0.1 and <5.1.6.
Potential Impact
An attacker who controls comment text passed to the ymlr library can inject arbitrary YAML content into generated documents. This can lead to forged or overridden YAML keys and values, and splitting the document into multiple YAML documents. Downstream systems that parse these YAML documents may process the injected content as legitimate data, potentially causing unintended behavior or configuration changes. The CVSS 4.0 base score is 2.1, indicating low severity with limited attack vector (local) and partial impact on integrity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a fix is available, avoid passing untrusted or attacker-controlled strings as comments to the ymlr document generation functions. Validate or sanitize comment inputs to remove CRLF characters or other control characters that could terminate comments prematurely.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-22T13:58:26.233Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6cac2eb597da70a833a421
Added to database: 07/31/2026, 14:07:42 UTC
Last enriched: 07/31/2026, 14:58:30 UTC
Last updated: 09/10/2026, 19:56:52 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.