Read the docs
TI-2026-39960 Aliases CVE-2026-55389GHSA-8359-h9fx-j6v9

Information disclosure in koxudaxi datamodel-code-generator

Priority HIGH 72CWE-200Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00547 46th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed datamodel-code-generator (koxudaxi): 0.62.0datamodel-code-generator (PyPI): 0.62.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
koxudaxidatamodel-code-generatorbefore 0.62.00.62.0Patch availableCNA
—datamodel-code-generator (PyPI)before 0.62.00.62.0Patch availableGHSA-8359-h9fx-j6v9
  • datamodel-code-generator Vendorkoxudaxi Affected before 0.62.0 Fixed in 0.62.0 Patch available CNA
  • datamodel-code-generator (PyPI) Vendor— Affected before 0.62.0 Fixed in 0.62.0 Patch available GHSA-8359-h9fx-j6v9

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:koxudaxi:datamodel-code-generator:*:*:*:*:*:*:*:*before 0.62.0Vulnerablekoxudaxi
  • cpe:2.3:a:koxudaxi:datamodel-code-generator:*:*:*:*:*:*:*:* Versions before 0.62.0 Vulnerable ·koxudaxi

Remediation

  • Fix · CNA datamodel-code-generator (koxudaxi) Fixed in 0.62.0
  • Fix · GHSA-8359-h9fx-j6v9 datamodel-code-generator (PyPI) Fixed in 0.62.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-55389
  2. 2026-10-03 Alias added: GHSA-8359-h9fx-j6v9

References

  • TI-2026-39511 datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default) CVSS 3.1HIGH 8.2
  • TI-2026-39483 Code injection in koxudaxi datamodel-code-generator CVSS 3.1HIGH 7.8
  • TI-2026-39984 Code injection in koxudaxi datamodel-code-generator CVSS 3.1HIGH 7.5
  • TI-2026-39962 datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding CVSS 3.1HIGH 7.5
  • TI-2026-39480 `datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field CVSS 3.1HIGH 8.8

Sources