When generator classes are used directly, a quote can terminate the string literal and inject arbitrary Python code into the enum class body, which executes when the generated module is imported.
- CVSS
- 8.8High
- Chance of exploitation (EPSS)
- 0.37%
- Published
- Oct 13, 2026
- In the news
- Not yet
What to do
A serious code injection flaw in Marcosschroh Dataclasses-avroschema that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Marcosschroh Dataclasses-avroschema
- >= 0.38.0, < 0.70.6
Description
dataclasses-avroschema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records and generates Python code from Avro schemas. From version 0.38.0 through 0.70.5, EnumRepresentation.render_symbols concatenates each schema-controlled enum symbol between double quotes in a generated enum assignment. When generator classes are used directly, a quote can terminate the string literal and inject arbitrary Python code into the enum class body, which executes when the generated module is imported. Version 0.70.6 fixes the vulnerability by escaping enum symbol values before rendering them.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-108382 published (CVSS 8.8) (Oct 13, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Tue, Oct 13, 2026
- CVECVE-2026-108382 published (CVSS 8.8)CVE Program · 18:17 UTC
References 4
- github.com /marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc
- github.com /marcosschroh/dataclasses-avroschema/releases/tag/0.70.6
- github.com /marcosschroh/dataclasses-avroschema/security/advisories/GHSA-vrq9-94ww-jv3c
- github.com /marcosschroh/dataclasses-avroschema/security/advisories/GHSA-vrq9-94ww-jv3c