PT-2026-111789 · Git+1 · Dataclasses-Avroschema
CVE-2026-108380
·
Published
2026-10-13
·
Updated
2026-10-13
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
dataclasses-avroschema versions 0.65.9 through 0.70.5
Description
The
PydanticFieldRepresentation.add field properties() function fails to escape the documentation value of a schema field when inserting it into the description argument of a generated pydantic.Field. A specially crafted quote can terminate the string and inject an expression that is evaluated during the generated class definition, leading to arbitrary Python code execution during Pydantic and AvroDantic model generation.Recommendations
Update to version 0.70.6.
Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dataclasses-Avroschema