{"id":"CVE-2026-65636","aliases":["CVE-2026-65636","EEF-CVE-2026-65636","GHSA-p8qx-7cp9-v6c9"],"related":[],"kind":"vulnerability","state":"published","title":"YAML injection via unescaped newlines in ymlr document comments","summary":"Improper Neutralization of CRLF Sequences vulnerability in ufirstgroup ymlr (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.\n\nAn 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.\n\nThis vulnerability is associated with program files lib/ymlr.ex and program routines Ymlr.document!/2, Ymlr.documents!/2.\n\nThis issue affects ymlr: from 0.0.1 before 5.1.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of CRLF Sequences vulnerability in ufirstgroup ymlr (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.\n\nAn 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.\n\nThis vulnerability is associated with program files lib/ymlr.ex and program routines Ymlr.document!/2, Ymlr.documents!/2.\n\nThis issue affects ymlr: from 0.0.1 before 5.1.6.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of CRLF Sequences vulnerability in ufirstgroup ymlr (`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.\n\nAn 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.\n\nThis vulnerability is associated with program files `lib/ymlr.ex` and program routines `Ymlr.document!/2`, `Ymlr.documents!/2`.\n\nThis issue affects ymlr: from 0.0.1 before 5.1.6.\n\n## Workarounds\n\nSplit any untrusted comment string on line breaks and pass the resulting list as the comment element of the `{comment, data}` tuple. Ymlr prefixes every list element with its own `#` marker, so no line can leave the comment context. Alternatively, reject comment strings that contain carriage return or line feed characters, or keep untrusted text out of comments entirely and place it in the encoded data instead, where the encoder quotes it.\n\n## Configurations\n\nA deployment is vulnerable when the host application places attacker-controlled text in the comment position of a document, that is, as the first element of the `{comment, data}` tuple passed to `Ymlr.document!/2`, `Ymlr.document/2`, `Ymlr.documents!/2` or `Ymlr.documents/2`. Callers that encode data without comments, or that use only static comment strings, are not exploitable.","format":"markdown","source":"eef"},{"lang":"es","text":"La vulnerabilidad de neutralización incorrecta de secuencias CRLF en ufirstgroup ymlr (módulo Elixir.Ymlr) permite a los atacantes inyectar contenido arbitrario en documentos YAML generados a través de comentarios de documentos. Ymlr.document!/2 interpola cada cadena de comentario proporcionada por el llamador en la salida detrás de un único prefijo # sin validarla o escapar los saltos de línea. Debido a que un comentario YAML termina con un salto de línea, el primer retorno de carro o salto de línea en la cadena de comentario finaliza el contexto del comentario y todo lo que le sigue se emite en la columna 0 del cuerpo del documento.\n\nUn atacante que controla el texto que la aplicación anfitriona pasa como comentario puede falsificar claves de mapeo de nivel superior, anular valores que la propia aplicación estableció y emitir marcadores --- o ... que dividen la salida en documentos adicionales. Los consumidores posteriores del YAML generado, como cargadores de configuración, manifiestos de despliegue, pipelines de CI e importadores de datos, analizan el contenido inyectado como datos legítimos. La misma cláusula respalda Ymlr.document/2, Ymlr.documents!/2 y Ymlr.documents/2, por lo que cada punto de entrada de codificación de documentos se ve afectado.\n\nEsta vulnerabilidad está asociada con los archivos de programa lib/ymlr.ex y las rutinas de programa Elixir.Ymlr:document!/2, Elixir.Ymlr:documents!/2.\n\nEste problema afecta a ymlr desde 0.0.1 antes de 5.1.6.","source":"nvd"}],"published":"2026-07-31T13:29:31.198Z","modified":"2026-11-25T06:30:08.790Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.1","fixed":"5.1.6","status":"affected"}],"vendor":"ufirstgroup","product":"ymlr","package":"ymlr","cpe":"cpe:2.3:a:ufirstgroup:ymlr:*:*:*:*:*:*:*:*","repo":"https://github.com/ufirstgroup/ymlr","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0c11a86de83825e91c27cecaccb03f36416d8fe0","fixed":"42a0bf8b2af44b0e7c42d0b7044c8588ca5866dc","status":"affected"}],"vendor":"ufirstgroup","product":"ymlr","package":"ufirstgroup/ymlr","cpe":"cpe:2.3:a:ufirstgroup:ymlr:*:*:*:*:*:*:*:*","repo":"https://github.com/ufirstgroup/ymlr","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.1","status":"affected","fixed":"5.1.6"}],"ecosystem":"Hex","package":"ymlr","purl":"pkg:hex/ymlr","source":"eef"},{"ranges":[{"type":"git","introduced":"0c11a86de83825e91c27cecaccb03f36416d8fe0","status":"affected","fixed":"42a0bf8b2af44b0e7c42d0b7044c8588ca5866dc"}],"repo":"https://github.com/ufirstgroup/ymlr","source":"eef"}],"references":[{"url":"https://github.com/ufirstgroup/ymlr/security/advisories/GHSA-p8qx-7cp9-v6c9","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-65636.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-65636","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ufirstgroup/ymlr/commit/7e53061fb2809b787fba0373c46b78e253c83adc","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ufirstgroup/ymlr/commit/0c11a86de83825e91c27cecaccb03f36416d8fe0","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ufirstgroup/ymlr/commit/42a0bf8b2af44b0e7c42d0b7044c8588ca5866dc","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ymlr","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Michael Ruoss"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-31T14:28:31.525Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65636","url":"https://www.cve.org/CVERecord?id=CVE-2026-65636","licence":"CVE Terms of Use","modified":"2026-11-24T06:40:30.383Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-65636","url":"https://osv.dev/vulnerability/EEF-CVE-2026-65636","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:08.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65636","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65636","licence":"Public domain","modified":"2026-11-24T07:17:20.500Z"}],"updatedAt":"2026-11-25T22:59:30.706Z","epss":{"score":0.00141,"percentile":0.03681,"date":"2026-12-01T12:00:22.000Z"}}