Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-55391: datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI

42
This week
HIGH 7.5REMOTEUPGRADE

CVE-2026-55391 is a high-severity flaw (CVSS 7.5) affecting datamodel-code-generator. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 a

Why this priority

  • High severity
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.3% (top 78%)
CISA exploited listNo
WeaknessCWE-350, CWE-367, CWE-918
Published2026-07-28
Last modified2026-10-23
Publisher (CNA): GitHub, Inc. · Vendor: koxudaxi

Am I affected?

Timeline

koxudaxi datamodel-code-generator UPGRADE
Affected: < 0.63.0
Fixed in: 0.63.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy datamodel-code-generator || rpm -q datamodel-code-generator || datamodel-code-generator --version
2. UPGRADE to 0.63.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade datamodel-code-generator
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade datamodel-code-generator
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Related CVEs

References

← Back to latest CVEs