CYBER CODE RED

Get real-time updates on Telegram

P4

CVE-2026-127208: datamodel-code-generator 0 to before 0.84.0

CVE-2026-127208. CVSS 3.1 base score 8.8 (HIGH, Vendor/CNA). EPSS 0.00371 (percentile 0.31542), scored 13-Nov-2026. Fixed version: 213ff2c4ab65839d09ea76b93ea446f404a8e5b3. Fixed version: ebfc11d0644d37a71374b28aac06d98748e584ec.

Affected technology

datamodel-code-generator · 0 to before 0.84.0
datamodel-code-generator

Description’s affected range: before 0.84.0

Component: Not specified by the source

Attack conditions (Vendor/CNA, CVSS 4.0): Network (remote) · No privileges required · Active user interaction

What an attacker can do

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. Vendor/CNA’s CVSS 4.0 assessment (base score 8.6/10) rates confidentiality, integrity and availability impact as high.

Published

CWE
CWE-94
CCR priority
35.3 /100 (P4)
CVSS 3.1
8.8 /10 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · Vendor/CNA
EPSS
0.00371 · percentile 0.31548 · 2026-11-15
KEV
no

Provenance

Stable permalink: https://cybercodered.org/item/cve-cve-2026-127208.html