CVE-2026-54690: CWE-918: Server-Side Request Forgery (SSRF) in koxudaxi datamodel-code-generator
A Server-Side Request Forgery (SSRF) vulnerability exists in koxudaxi datamodel-code-generator versions from 0.9.1 up to but not including 0.61.0. The tool silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs, potentially allowing SSRF attacks. This issue is resolved in version 0.61.0.
AI Analysis
Technical Summary
The datamodel-code-generator tool, which generates Pydantic v2 models and other data structures from various schema formats, contains an SSRF vulnerability (CWE-918) in versions >=0.9.1 <0.61.0. The vulnerability arises because the tool silently dereferences JSON Schema $ref URLs over HTTP or HTTPS in the _get_ref_body function within jsonschema.py. The --allow-remote-refs option may only warn instead of blocking, enabling an attacker to cause the server to make unintended HTTP requests. This SSRF flaw is fixed in version 0.61.0.
Potential Impact
An attacker can exploit this vulnerability to make the server perform unauthorized HTTP or HTTPS requests to arbitrary URLs. This can lead to information disclosure (high confidentiality impact) and potentially other indirect impacts. The CVSS score of 8.2 reflects a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and partial integrity impact without availability impact.
Mitigation Recommendations
Upgrade datamodel-code-generator to version 0.61.0 or later, where this SSRF vulnerability is fixed. No other mitigation or temporary workaround is indicated in the available data.
CVE-2026-54690: CWE-918: Server-Side Request Forgery (SSRF) in koxudaxi datamodel-code-generator
Description
A Server-Side Request Forgery (SSRF) vulnerability exists in koxudaxi datamodel-code-generator versions from 0.9.1 up to but not including 0.61.0. The tool silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs, potentially allowing SSRF attacks. This issue is resolved in version 0.61.0.
CVSS v3.1
Score 8.2high
Affected software
koxudaxi
datamodel-code-generator
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The datamodel-code-generator tool, which generates Pydantic v2 models and other data structures from various schema formats, contains an SSRF vulnerability (CWE-918) in versions >=0.9.1 <0.61.0. The vulnerability arises because the tool silently dereferences JSON Schema $ref URLs over HTTP or HTTPS in the _get_ref_body function within jsonschema.py. The --allow-remote-refs option may only warn instead of blocking, enabling an attacker to cause the server to make unintended HTTP requests. This SSRF flaw is fixed in version 0.61.0.
Potential Impact
An attacker can exploit this vulnerability to make the server perform unauthorized HTTP or HTTPS requests to arbitrary URLs. This can lead to information disclosure (high confidentiality impact) and potentially other indirect impacts. The CVSS score of 8.2 reflects a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and partial integrity impact without availability impact.
Mitigation Recommendations
Upgrade datamodel-code-generator to version 0.61.0 or later, where this SSRF vulnerability is fixed. No other mitigation or temporary workaround is indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T22:53:58.562Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6924a99c2644c7f8425672
Added to database: 07/28/2026, 21:52:41 UTC
Last enriched: 08/05/2026, 14:55:05 UTC
Last updated: 09/11/2026, 09:31:55 UTC
Views: 64
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.