Skip to main content
VulnerabilityPublished

CVE-2026-108382: marcosschroh dataclasses-avroschema · Code Injection

Affects marcosschroh dataclasses-avroschemaSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 0.70.6 soon.

Data as of 27 Nov 2026, 22:51 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.70.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.

What to do

Upgrade marcosschroh dataclasses-avroschema to 0.70.6.

Affected software

ProductAffectedFixed in
marcosschrohdataclasses-avroschemaAffected
  • >=0.38.0 <0.70.6
Fixed in
  • 0.70.6
PyPIdataclasses-avroschemapkg:pypi/dataclasses-avroschemaOther threatsAffected
  • >=0.38.0 <0.70.6
Fixed in
  • 0.70.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade dataclasses-avroschema to version 0.70.6 or later, where the vulnerability is fixed by escaping enum symbol values before rendering. Users should avoid using vulnerable versions (>=0.38.0 <0.70.6) for code generation. No additional mitigations are specified by the vendor advisory.

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.

References

Community reviews

Loading reviews…