# CVE-2026-108378: dataclasses-avroschema record documentation can terminate generated class docstrings

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-10-13T17:34:28.530Z
- Modified: 2026-10-16T16:00:33.533Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- marcosschroh dataclasses-avroschema: >= 0.40.0, < 0.70.6

## References

- <https://github.com/marcosschroh/dataclasses-avroschema/security/advisories/GHSA-ff3j-hw44-6vx4>
- <https://github.com/marcosschroh/dataclasses-avroschema/commit/429f3d705d2d04c0c65e2ef832daed5ff91318fc>
- <https://github.com/marcosschroh/dataclasses-avroschema/releases/tag/0.70.6>

## Sources

- CVE List: [CVE-2026-108378](https://www.cve.org/CVERecord?id=CVE-2026-108378), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-108378](https://nvd.nist.gov/vuln/detail/CVE-2026-108378), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108378 · Whole record: https://cve.day/CVE-2026-108378.json · Rebuilt by cve.day 2026-11-25T22:59:43.879Z
