{"id":82651,"date":"2026-07-29T01:47:48","date_gmt":"2026-07-28T22:17:48","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-55391-datamodel-code-generator-vulnerable-to-ssrf-protection-bypass-via-dns-rebinding\/"},"modified":"2026-07-29T01:47:48","modified_gmt":"2026-07-28T22:17:48","slug":"cve-2026-55391-datamodel-code-generator-vulnerable-to-ssrf-protection-bypass-via-dns-rebinding","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-55391-datamodel-code-generator-vulnerable-to-ssrf-protection-bypass-via-dns-rebinding\/","title":{"rendered":"CVE-2026-55391 &#8211; datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding"},"content":{"rendered":"<p>CVE ID :CVE-2026-55391<\/p>\n<p>  Published : July 28, 2026, 10:17 p.m. | 22\u00a0minutes ago<\/p>\n<p>  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.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 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.<\/p>\n<p>  Severity: 7.5 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-55391 Published : July 28, 2026, 10:17 p.m. | 22\u00a0minutes ago 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.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 lets &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82651","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82651"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82651\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}