CVE-2026-55391: CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action in koxudaxi datamodel-code-generator
CVE-2026-55391 is a high-severity vulnerability in koxudaxi datamodel-code-generator versions prior to 0.63.0. The tool improperly relies on reverse DNS resolution for security-critical decisions, allowing DNS rebinding attacks to bypass network restrictions and potentially access internal services. This issue is fixed in version 0.63.0.
AI Analysis
Technical Summary
The datamodel-code-generator validates a URL host once using reverse DNS resolution in its internal functions but then allows the httpx library to resolve the host again when making connections. This discrepancy enables DNS rebinding attacks to circumvent the allow_private_network=False setting, potentially exposing internal services. The vulnerability is identified as CWE-350 (Reliance on Reverse DNS Resolution for a Security-Critical Action), CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition), and CWE-918 (Server-Side Request Forgery). The issue is resolved in version 0.63.0 of datamodel-code-generator.
Potential Impact
An attacker can exploit this vulnerability to bypass network restrictions intended to prevent access to internal services by leveraging DNS rebinding. This can lead to unauthorized access to internal network resources, resulting in high confidentiality impact and limited integrity impact. Availability is not affected.
Mitigation Recommendations
Upgrade datamodel-code-generator to version 0.63.0 or later, where this vulnerability is fixed. No other mitigation is indicated in the vendor advisory. Patch status is not explicitly stated but the fix is included in version 0.63.0.
CVE-2026-55391: CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action in koxudaxi datamodel-code-generator
Description
CVE-2026-55391 is a high-severity vulnerability in koxudaxi datamodel-code-generator versions prior to 0.63.0. The tool improperly relies on reverse DNS resolution for security-critical decisions, allowing DNS rebinding attacks to bypass network restrictions and potentially access internal services. This issue is fixed in version 0.63.0.
CVSS v3.1
Score 7.5high
Affected software
koxudaxi
datamodel-code-generator
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The datamodel-code-generator validates a URL host once using reverse DNS resolution in its internal functions but then allows the httpx library to resolve the host again when making connections. This discrepancy enables DNS rebinding attacks to circumvent the allow_private_network=False setting, potentially exposing internal services. The vulnerability is identified as CWE-350 (Reliance on Reverse DNS Resolution for a Security-Critical Action), CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition), and CWE-918 (Server-Side Request Forgery). The issue is resolved in version 0.63.0 of datamodel-code-generator.
Potential Impact
An attacker can exploit this vulnerability to bypass network restrictions intended to prevent access to internal services by leveraging DNS rebinding. This can lead to unauthorized access to internal network resources, resulting in high confidentiality impact and limited integrity impact. Availability is not affected.
Mitigation Recommendations
Upgrade datamodel-code-generator to version 0.63.0 or later, where this vulnerability is fixed. No other mitigation is indicated in the vendor advisory. Patch status is not explicitly stated but the fix is included in version 0.63.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T18:57:40.183Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6924a99c2644c7f8425681
Added to database: 07/28/2026, 21:52:41 UTC
Last enriched: 08/05/2026, 15:09:56 UTC
Last updated: 09/11/2026, 07:31:54 UTC
Views: 90
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.