Lucene search
+L

3 matches found

PyPA
PyPA
•added 2026/08/04 11:34 a.m.•30 views

datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements

SummaryA malicious input schema OpenAPI / JSON Schema can execute arbitrary Python code on the machine that imports the generated model. The x-python-import and customTypePath schema extensions flow, unsanitized, into the import statements datamodel-code-generator emits. A newline embedded in the...

7.5CVSS6.9AI score0.00488EPSS
SaveExploits1References7Affected Software1
OSV
OSV
•added 2026/08/04 11:34 a.m.•15 views

PYSEC-2026-3557 datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements

Summary A malicious input schema OpenAPI / JSON Schema can execute arbitrary Python code on the machine that imports the generated model. The x-python-import and customTypePath schema extensions flow, unsanitized, into the import statements datamodel-code-generator emits. A newline embedded in th...

7.5CVSS6.9AI score0.00488EPSS
SaveExploits1References7
Github Security Blog
Github Security Blog
•added 2026/07/28 9:40 p.m.•28 views

datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements

Summary A malicious input schema OpenAPI / JSON Schema can execute arbitrary Python code on the machine that imports the generated model. The x-python-import and customTypePath schema extensions flow, unsanitized, into the import statements datamodel-code-generator emits. A newline embedded in th...

7.5CVSS6.9AI score0.00488EPSS
SaveExploits1References4Affected Software1
Rows per page
Query Builder