CVE-2026-55391
Last modified
CVE-2026-55391 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Koxudaxi | Datamodel-Code-Generator | < 0.63.0 |
References
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-vx7x-vcc2-c44gExploit, Vendor Advisory
- https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-55391?
How severe is CVE-2026-55391?
How do I fix CVE-2026-55391?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-5538A vulnerability was detected in QingdaoU OnlineJudge up to 1…6.3
- CVE-2026-55380Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdI…7.5
- CVE-2026-55388piscina is a node.js worker pool implementation. Prior to 6.…8.1
- CVE-2026-55389datamodel-code-generator generates Pydantic v2 models, datac…7.5
- CVE-2026-5539A flaw has been found in code-projects Simple Laundry System…4.3
- CVE-2026-55390datamodel-code-generator generates Python data models from s…7.5
- CVE-2026-55392NILFS utilities through 2.3.0, fixed in commit 26efb5d, nilf…6.7
- CVE-2026-55398CVE-2026-55398 is a memory management vulnerability in Secur…3.7
- CVE-2026-55399CVE-2026-55399 is a resource exhaustion vulnerability in the…4.3
- CVE-2026-5540A vulnerability has been found in code-projects Simple Laund…7.3
- CVE-2026-55403datamodel-code-generator generates Python data models from s…3.7
- CVE-2026-55404yt-dlp and youtube-dl are command-line audio/video downloade…8.8
Are you affected by CVE-2026-55391?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
