Cyber Resilience

CVE-2026-55391

SSRF in Koxudaxi Datamodel-Code-Generator ≤ 0.63.0

Published
28 July 2026
Modified
06 August 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
EPSS Score 0.0019 9th percentile
Risk Priority 52 floored blend · peak EPSS

Summary

CVE-2026-55391 is a high-severity Reliance on Reverse DNS Resolution for a Security-Critical Action (CWE-350) vulnerability in Koxudaxi Datamodel-Code-Generator. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Path Interception (T1034); ranked at the 9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-25 (Reference Monitor) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1034 Path Interception Persistence
**This technique has been deprecated.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1548 Abuse Elevation Control Mechanism Privilege Escalation
Adversaries may circumvent mechanisms designed to control privilege elevation to gain higher-level permissions.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
T1584.002 DNS Server Resource Development
Adversaries may compromise third-party DNS servers that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-54690Same product: Koxudaxi Datamodel-Code-Generator
CVE-2026-54656Same product: Koxudaxi Datamodel-Code-Generator
CVE-2026-55415Same product: Koxudaxi Datamodel-Code-Generator
CVE-2026-54653Same product: Koxudaxi Datamodel-Code-Generator
CVE-2026-55389Same product: Koxudaxi Datamodel-Code-Generator
CVE-2026-25738Shared CWE-367, CWE-918
CVE-2025-64180Shared CWE-367, CWE-918
CVE-2026-33659Shared CWE-367, CWE-918
CVE-2026-54353Shared CWE-367, CWE-918
CVE-2026-42592Shared CWE-367, CWE-918

Affected Assets

koxudaxi
datamodel-code-generator
≤ 0.63.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V15.4.2
  • V17.2.6
  • V1.3.6
  • V1.5.3

Mitigating Controls (NIST 800-53 r5) AI

A reference monitor that is always invoked and analyzable structurally eliminates the non-atomic check-then-use pattern underlying TOCTOU.

Information flow enforcement can restrict which destinations the server is allowed to contact on behalf of users.

Requiring unique device identification and authentication before any connection prevents security decisions based solely on unverified reverse DNS lookups.

Mandating data-origin authentication for name/address resolution stops reliance on unauthenticated reverse DNS responses.

Input validation directly stops untrusted URLs from being accepted and fetched without destination checks.

Access enforcement that performs an atomic check-and-use decision directly stops the window in which a TOCTOU race can be exploited.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-03 mostly match
prevents

Strong authentication of users/services/hardware directly prevents security decisions based on unauthenticated reverse DNS.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly include coding standards and reviews that prevent TOCTOU race conditions.

DE.CM-01 partial match
prevents

Monitoring DNS services can detect adverse events stemming from unverified reverse lookups.

DE.CM-09 partial match
prevents

Runtime monitoring of web applications and services can detect anomalous outbound requests indicative of SSRF.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover and record SSRF flaws in web applications.

PR.IR-01 partial match
prevents

Network protections reduce the feasibility of attackers exploiting unauthenticated reverse-DNS decisions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Operational threat data describing SSRF campaigns can be used to tighten outbound-request allow-lists and detection rules before attackers exploit them.

mitigates

Network security controls can enforce authenticated, non-DNS-based host identification.

mitigates

Secure network services discourage use of unauthenticated reverse-DNS for access decisions.

prevents

Application security requirements can mandate authenticated host verification instead of reverse DNS.

prevents

Secure architecture principles discourage reliance on unauthenticated DNS for security decisions.

prevents

Secure coding practices can replace reverse-DNS checks with cryptographically verified identities.

References