CVE-2026-54690
Last modified
CVE-2026-54690 is a high-severity vulnerability rated 8.2/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. From 0.9.1 until 0.61.0, datamodel-code-generator silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs in src/datamodel_code_generator/parser/jsonschema.py through _get_ref_body, and the --allow-remote-refs gate can warn instead of blocking, allowing server-side request forgery through src/datamodel_code_generator/http.py. EPSS estimates a 0.21% 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. From 0.9.1 until 0.61.0, datamodel-code-generator silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs in src/datamodel_code_generator/parser/jsonschema.py through _get_ref_body, and the --allow-remote-refs gate can warn instead of blocking, allowing server-side request forgery through src/datamodel_code_generator/http.py. This issue is fixed in version 0.61.0.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Koxudaxi | Datamodel-Code-Generator | >= 0.9.1, < 0.61.0 |
References
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-954p-556p-r752Exploit, Vendor Advisory
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-954p-556p-r752Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-54690?
How severe is CVE-2026-54690?
How do I fix CVE-2026-54690?
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-5468A security flaw has been discovered in Casdoor 2.356.0. This…5.4
- CVE-2026-54680Logging operator automates the deployment and configuration …9.9
- CVE-2026-54684jadx is a Dex to Java decompiler. From 1.5.2 to 1.5.5, a mal…7
- CVE-2026-54685FileBrowser Quantum is a free, self-hosted, web-based file m…5.3
- CVE-2026-54686Warp is an agentic development environment. From 0.2021.04.2…4.3
- CVE-2026-5469A weakness has been identified in Casdoor 2.356.0. This vuln…7.2
- CVE-2026-54691datamodel-code-generator generates Python data models from s…8.2
- CVE-2026-54693ZITADEL is an open source identity management platform. From…8.2
- CVE-2026-54695Pipecat is an open-source Python framework for building real…6.5
- CVE-2026-54696Ruby JSON is a JSON implementation for Ruby. Versions 2.9.0 …3.7
- CVE-2026-54698Hasura is an open-source product that provides users GraphQL…6
- CVE-2026-54699Warp is an agentic development environment. From 0.2024.03.1…7.7
Are you affected by CVE-2026-54690?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
