CVE-2026-55389
Last modified
CVE-2026-55389 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.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. EPSS estimates a 0.36% 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.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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Koxudaxi | Datamodel-Code-Generator | < 0.62.0 |
References
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9Exploit, Vendor Advisory
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-55389?
How severe is CVE-2026-55389?
How do I fix CVE-2026-55389?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- 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-55370Logto is the modern, open-source auth infrastructure for Saa…6.4
- CVE-2026-55377Logto is the modern, open-source auth infrastructure for Saa…8.1
- CVE-2026-55379Pillow is a Python imaging library. Prior to 12.3.0, PIL/Bdf…7.5
- 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-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-55391datamodel-code-generator generates Pydantic v2 models, datac…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
Are you affected by CVE-2026-55389?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
