CVE Explorer
CVE-2026-54654
datamodel-code-generator generates Python data models from schema definitions. From 0.14.1 until 0.60.2, the --extra-template-data comment field is rendered into Python comments in src/datamodel_code_generator/model/template/TypeAliasAnnotation.jinja2, src/datamodel_code_generator/model/template/TypedDict.jinja2, src/datamodel_code_generator/model/template/dataclass.jinja2, src/datamodel_code_generator/model/template/msgspec.Struct.jinja2, src/datamodel_code_generator/model/template/pydantic/Bas
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"datamodel-code-generator","vendor":"koxudaxi","versions":[{"status":"affected","version":">= 0.14.1, < 0.60.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/koxudaxi/datamodel-code-generator/commit/b73abb5cd703a50471b8950bbd3bd0b82ad71de7","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/b73abb5cd703a50471b8950bbd3bd0b82ad71de7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/references/1
{"name":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-wjv6-jcfj-mf9r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/adp/0/references/0
{"name":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-wjv6-jcfj-mf9r","tags":["x_refsource_CONFIRM"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-wjv6-jcfj-mf9r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:926bfe788740e590f1c42b12497837f8edcc1cf72aff3956b21411572d8798bb · sha256:aca127b83489aa9d… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.