A crafted triple-quote sequence can close the docstring and inject statements into the generated class body, while a trailing backslash can escape the generated closing delimiter, allowing Python cod…
- CVSS
- 8.8High
- Chance of exploitation (EPSS)
- 0.34%
- 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.40.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.40.0 through 0.70.5, ClassRepresentation.render_docstring copies a schema record's doc value into a generated triple-double-quoted class docstring without escaping quotes or backslashes. A crafted triple-quote sequence can close the docstring and inject statements into the generated class body, while a trailing backslash can escape the generated closing delimiter, allowing Python code execution during module import. Version 0.70.6 fixes the vulnerability by escaping quotes, backslashes, and unsafe control characters before rendering docstrings.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-108378 published (CVSS 8.8) (Oct 13, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Tue, Oct 13, 2026
- CVECVE-2026-108378 published (CVSS 8.8)CVE Program · 18:17 UTC
References 3
- 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-ff3j-hw44-6vx4