CVE-2026-55403: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in koxudaxi datamodel-code-generator
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.
AI Analysis
Technical Summary
The datamodel-code-generator tool, used for generating Python data models from schema definitions, had a vulnerability (CVE-2026-55403) in versions before 0.63.0. The vulnerability involves the reuse of sensitive HTTP headers (Authorization, Cookie, Proxy-Authorization) when following cross-origin redirects in the function get_body within src/datamodel_code_generator/http.py. This behavior can cause credentials scoped to one schema host to be inadvertently sent to another redirect target, leading to exposure of sensitive information. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information) and CWE-601 (Open Redirect). The issue is resolved in version 0.63.0.
Potential Impact
The vulnerability allows unauthorized exposure of sensitive credentials (Authorization, Cookie, Proxy-Authorization headers) to unintended hosts during cross-origin redirects when fetching remote schemas. This could lead to credential leakage but does not affect integrity or availability. The CVSS score is 3.7 (low severity), reflecting limited impact and the requirement for network access with high attack complexity.
Mitigation Recommendations
Upgrade to datamodel-code-generator version 0.63.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
CVE-2026-55403: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in koxudaxi datamodel-code-generator
Description
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.
CVSS v3.1
Score 3.7low
Affected software
koxudaxi
datamodel-code-generator
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The datamodel-code-generator tool, used for generating Python data models from schema definitions, had a vulnerability (CVE-2026-55403) in versions before 0.63.0. The vulnerability involves the reuse of sensitive HTTP headers (Authorization, Cookie, Proxy-Authorization) when following cross-origin redirects in the function get_body within src/datamodel_code_generator/http.py. This behavior can cause credentials scoped to one schema host to be inadvertently sent to another redirect target, leading to exposure of sensitive information. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information) and CWE-601 (Open Redirect). The issue is resolved in version 0.63.0.
Potential Impact
The vulnerability allows unauthorized exposure of sensitive credentials (Authorization, Cookie, Proxy-Authorization headers) to unintended hosts during cross-origin redirects when fetching remote schemas. This could lead to credential leakage but does not affect integrity or availability. The CVSS score is 3.7 (low severity), reflecting limited impact and the requirement for network access with high attack complexity.
Mitigation Recommendations
Upgrade to datamodel-code-generator version 0.63.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T21:48:43.124Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6924a99c2644c7f8425686
Added to database: 07/28/2026, 21:52:41 UTC
Last enriched: 07/29/2026, 21:31:37 UTC
Last updated: 09/11/2026, 22:06:34 UTC
Views: 62
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.