<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-09T23:18:03.478689+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/euvd-2026-342294</id>
    <title>EUVD-2026-342294</title>
    <updated>2026-10-09T23:18:03.541549+00:00</updated>
    <content>EUVD-2026-342294</content>
    <link href="https://cve.radiocsirt.org/vuln/euvd-2026-342294"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/fkie_cve-2026-54621</id>
    <title>fkie_cve-2026-54621</title>
    <updated>2026-10-09T23:18:03.541591+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>datamodel-code-generator generates Python data models from schema definitions. Prior to 0.60.1, GraphQL Union description values in src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2 and src/datamodel_code_generator/model/template/UnionTypeStatement.py312.jinja2 are rendered into Python comments without neutralizing carriage returns in Python # comments, allowing attacker-controlled GraphQL schema content to inject Python code into generated models that runs when imported. This issue is fixed in version 0.60.1.</p>
      </div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/fkie_cve-2026-54621"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-j884-q54q-mmx3</id>
    <title>GHSA-j884-q54q-mmx3 — `datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description</title>
    <updated>2026-10-09T23:18:03.541626+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: datamodel-code-generator</p>
<p>### Summary</p>
<p>`datamodel-code-generator` is vulnerable to code injection when generating Python models from an attacker-controlled GraphQL schema. A description on a Union type, written in the regular-string form (`"..."`) with a literal `\r` escape, is rendered into a Python `#` comment by a Jinja2 filter that handles only `\n`. Python's tokenizer treats a bare CR as a physical-line terminator, so the comment ends at the `\r` and the text after it is parsed as module-level Python. The injected code executes at `import` time of the generated `.py`, in the context of any consumer that imports the model. No special CLI flags are required.</p>
<p>This affects versions `&gt;=0.25.0, &lt;0.60.1` and is fixed in `0.60.1`.</p>
<p>### Details</p>
<p>The vulnerable output was generated by the GraphQL Union templates:</p>
<p>- `src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2`
- `src/datamodel_code_generator/model/template/UnionTypeAliasAnnotation.jinja2`
- `src/datamodel_code_generator/model/template/UnionTypeAliasType.jinja2`</p>
<p>Before `0.60.1`, Union descriptions were rendered as Python comments using logic equivalent to `# {{ description | replace('\n', '\n# ') }}`.</p>
<p>The Jinja2 `replace` filter handled `\n`, but bare `\r` was not normalized. Python's lexical analysis treats CR, LF, and CRLF as physical line terminators. As a result, a malicious GraphQL schema could cause the generated Python comment to end early and emit attacker-controlled text as module-level Python code.</p>
<p>The `description`…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-j884-q54q-mmx3"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/pysec-2026-3561</id>
    <title>PYSEC-2026-3561 — `datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description</title>
    <updated>2026-10-09T23:18:03.541679+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: datamodel-code-generator</p>
<p>### Summary</p>
<p>`datamodel-code-generator` is vulnerable to code injection when generating Python models from an attacker-controlled GraphQL schema. A description on a Union type, written in the regular-string form (`"..."`) with a literal `\r` escape, is rendered into a Python `#` comment by a Jinja2 filter that handles only `\n`. Python's tokenizer treats a bare CR as a physical-line terminator, so the comment ends at the `\r` and the text after it is parsed as module-level Python. The injected code executes at `import` time of the generated `.py`, in the context of any consumer that imports the model. No special CLI flags are required.</p>
<p>This affects versions `&gt;=0.25.0, &lt;0.60.1` and is fixed in `0.60.1`.</p>
<p>### Details</p>
<p>The vulnerable output was generated by the GraphQL Union templates:</p>
<p>- `src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2`
- `src/datamodel_code_generator/model/template/UnionTypeAliasAnnotation.jinja2`
- `src/datamodel_code_generator/model/template/UnionTypeAliasType.jinja2`</p>
<p>Before `0.60.1`, Union descriptions were rendered as Python comments using logic equivalent to `# {{ description | replace('\n', '\n# ') }}`.</p>
<p>The Jinja2 `replace` filter handled `\n`, but bare `\r` was not normalized. Python's lexical analysis treats CR, LF, and CRLF as physical line terminators. As a result, a malicious GraphQL schema could cause the generated Python comment to end early and emit attacker-controlled text as module-level Python code.</p>
<p>The `description`…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/pysec-2026-3561"/>
  </entry>
</feed>
