{"id":82653,"date":"2026-07-29T01:47:48","date_gmt":"2026-07-28T22:17:48","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-55389-datamodel-code-generator-vulnerable-to-arbitrary-local-file-read-via-json-schema-ref-file-and-traversal-bypassing-no-allow-remote-refs\/"},"modified":"2026-07-29T01:47:48","modified_gmt":"2026-07-28T22:17:48","slug":"cve-2026-55389-datamodel-code-generator-vulnerable-to-arbitrary-local-file-read-via-json-schema-ref-file-and-traversal-bypassing-no-allow-remote-refs","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-55389-datamodel-code-generator-vulnerable-to-arbitrary-local-file-read-via-json-schema-ref-file-and-traversal-bypassing-no-allow-remote-refs\/","title":{"rendered":"CVE-2026-55389 &#8211; datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file:\/\/` and `..\/` traversal), bypassing `&#8211;no-allow-remote-refs`"},"content":{"rendered":"<p>CVE ID :CVE-2026-55389<\/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.62.0, datamodel-code-generator resolves JSON Schema $ref targets in src\/datamodel_code_generator\/parser\/jsonschema.py through is_url and _get_ref_body without containing file:\/\/ or ..\/ traversal references to the input directory and without honoring &#8211;no-allow-remote-refs, allowing arbitrary local file reads. This issue is fixed in version 0.62.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-55389 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.62.0, datamodel-code-generator resolves JSON Schema $ref targets in src\/datamodel_code_generator\/parser\/jsonschema.py through is_url and _get_ref_body without containing file:\/\/ or &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-82653","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82653","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=82653"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82653\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}