ADVISORIES

Vulnerability

CVE-2026-55391

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.63.0, datamodel-code-generator validates a URL host once in src/datamodel_code_generator/http.py through get_body, _validate_url_for_fetch, and _get_ips_from_host, but then lets httpx resolve the host again for the connection, allowing DNS rebinding to bypass allow_private_network=False and reach internal services. This issue is fixed in version 0.63.0.

5 advisories report this vulnerability, across 3 ecosystems.

High severity All Chainguard 2PyPI 2openSUSE 1

Advisories

  • CGA-hr54-rwjp-36ww
    CVE-2026-55391 Chainguard Updated 5 November 2026
  • CGA-hvxj-q758-w8xh
    CVE-2026-55391 Chainguard Updated 5 November 2026
  • GHSA-vx7x-vcc2-c44g

    datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding

    High CVE-2026-55391 PyPI Updated 10 September 2026
  • PYSEC-2026-3565

    datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding

    CVE-2026-55391 PyPI Updated 4 August 2026
  • openSUSE-SU-2026:11538-1

    python313-datamodel-code-generator-0.72.3-1.1 on GA media

    CVE-2026-55391CVE-2026-55403CVE-2026-63720 openSUSE Updated 19 August 2026

References