CVE-2026-127208
8.8, highdatamodel-code-generator Code Injection Vulnerability
- CVSS
- 8.8, high high CVSS v3.1
- EPSS, next 30 days
- n/a
- Exploitation
- No public evidence
- Published
- 12 Nov 2026yesterday
Description
datamodel-code-generator before 0.84.0 contains a code injection vulnerability that allows attackers to achieve arbitrary code execution by supplying a malicious JSON Schema with a crafted x-python-type annotation containing a string ast.Constant node in a subscript slice position, which bypasses validation in parse_python_type_annotation and _python_type_expr_from_ast. Attackers can embed malicious Python expressions such as __import__ calls within quoted string literals in the generated source code, which Pydantic v2 evaluates as a ForwardRef via eval() during model_rebuild(), resulting in arbitrary code execution on developer workstations, CI/CD pipelines, or applications that generate and import the produced models at runtime.
Details
- Vendor
- Datamodel-code-generator
- Product
- datamodel-code-generator
- Weakness
- CWE-94 (opens in a new tab)
- Status
- Deferred
- Updated
- 12 Nov 2026
- Assigner
- disclosure@vulncheck.com
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References 3
Patches and fixes 1
The kind is read from NVD's tags where present and from the shape of the URL otherwise, so treat it as a hint.
Beyond this page
Is CVE-2026-127208 in your network?
This page tells you how dangerous CVE-2026-127208 is out there. Whether it sits on one of your devices, only a scan of your own network can tell. That is what our systems do, every day, for the companies we protect.
-
EXYS7600 OCELOT
Find it before attackers do
Ocelot scans your network on a schedule and reports every vulnerability it finds by its CVE identifier, with its CVSS score and how many of your hosts are affected. A finding like CVE-2026-127208 comes with the devices to patch.
Learn more about EXYS7600 OCELOT -
EXYS7950 KONDRA
Detect it if it's exploited
Until the patch is applied, Kondra monitors your network, events and endpoints in real time. It keeps an inventory of the software installed on every endpoint, and its anomaly detection rules flag what an attacker does once inside.
Learn more about EXYS7950 KONDRA
Assembled from the NVD 2.0 API, the CISA Known Exploited Vulnerabilities Catalog and FIRST EPSS. Scores are as of our last collection on 13 Nov 2026, not the live upstream state.