{"id":"CVE-2026-55403","published":"2026-07-28T21:31:49Z","modified":"2026-07-29T12:46:11Z","title":"datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote…","vendor":"koxudaxi","product":"datamodel-code-generator","tier":"tail","description":{"text":"datamodel-code-generator generates Python data models from schema definitions. Prior to 0.63.0, src/datamodel_code_generator/http.py get_body reuses Authorization, Cookie, and Proxy-Authorization headers when following cross-origin redirects while fetching remote schemas, allowing credentials scoped to one schema host to be leaked to another redirect target. This issue is fixed in version 0.63.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.27681,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-r5vv-ff45-prp2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/a585c037c8307b7aae815de193b7fe1c4c44994b","tags":["x_refsource_MISC"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.63.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":5.54},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"koxudaxi","affectedVersions":[{"vendor":"koxudaxi","product":"datamodel-code-generator","versions":["< 0.63.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-29T12:45:40.786689Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"datamodel-code-generator","vulnerableRanges":["<0.63.0"],"patched":["0.63.0"],"from":["GHSA-r5vv-ff45-prp2","PYSEC-2026-3563"],"provenance":"source"}],"summary":{"text":"datamodel-code-generator, a tool that generates Python data models from schema definitions, has a flaw in its remote schema fetching code (src/datamodel_code_generator/http.py, get_body) where it reuses Authorization, Cookie, and Proxy-Authorization headers when following cross-origin redirects. An attacker who can cause the tool to fetch a remote schema and redirect it to a host they control can capture those credentials when the redirect crosses origins, provided the attacker can get the tool to fetch from a URL they influence and the victim's schema request carries such headers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:29Z"},"euvd":{"id":"EUVD-2026-50070","exploited":false,"provenance":"source"}}