Live threats

All CVEs / Koxudaxi

CVE-2026-55389Koxudaxi Datamodel-code-generator

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jul 28, 2026
Updated
Oct 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-200, CWE-610
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. Prior to 0.62.0, datamodel-code-generator resolves JSON Schema $ref targets in src/datamodel_code_generator/parser/jsonschema.py through is_url and _get_ref_body without containing file:// or ../ traversal references to the input directory and without honoring --no-allow-remote-refs, allowing arbitrary local file reads. This issue is fixed in version 0.62.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Datamodel-code-generator.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI datamodel-code-generator < 0.62.0 0.62.0 pip install "datamodel-code-generator>=0.62.0"
PyPI datamodel-code-generator < 0.62.0 0.62.0 pip install "datamodel-code-generator>=0.62.0"

Per OSV / GitHub Advisories (GHSA-8359-h9fx-j6v9, PYSEC-2026-3558). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
koxudaxidatamodel-code-generator< 0.62.0

Official sources

References

Links published by the sources. Open them with care.