CVE-2026-108380

dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.65.9 through 0.70.5, PydanticFieldRepresentation.add_field_properties inserts a schema field's doc value between the quotes of a generated pydantic.Field description argument without escaping it. A crafted quote can terminate the string and inject an expression evaluated during generated class definition, allowing arbitrary Python code execution for Pydantic and AvroDantic model generation. Version 0.70.6 fixes the vulnerability by escaping the documentation value before rendering it.
Configurations

No configuration.

History

13 Oct 2026, 19:18

Type Values Removed Values Added
References () https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-g7p7-mgvm-jw7p - () https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-g7p7-mgvm-jw7p -

13 Oct 2026, 18:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-13 18:17

Updated : 2026-10-16 20:04


NVD link : CVE-2026-108380

Mitre link : CVE-2026-108380

CVE.ORG link : CVE-2026-108380


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')