CVE-2026-55403: datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
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.
Security readout for executives and security teams
Plain-English summary
Versions before 0.63.0 can accidentally send authentication credentials to an unrelated server when a remote schema host redirects the request across origins. The direct impact is limited credential disclosure, but exposed credentials could create wider business risk depending on their privileges and reuse.
Executive priority
Treat as a targeted, low-severity remediation. Prioritize systems that fetch authenticated remote schemas, especially build pipelines holding valuable tokens. Upgrade during the next normal maintenance cycle, escalating sooner if redirects or untrusted schema hosts are identified.
Technical view
The get_body function in src/datamodel_code_generator/http.py retained Authorization, Cookie, and Proxy-Authorization headers while following cross-origin redirects during remote schema retrieval. An attacker or compromised schema endpoint could redirect the request to another origin and receive those headers. Version 0.63.0 fixes the behavior.
Likely exposure
Exposure requires datamodel-code-generator below 0.63.0, remote schema fetching with sensitive request headers, and a cross-origin redirect. Environments using only local schemas, no credentials, or version 0.63.0 or later are not described as affected.
Exploitation context
The supplied sources provide no evidence of active exploitation, and the CVE is not listed as KEV. Exploitation depends on controlling or influencing a schema endpoint's redirect behavior, which aligns with the reported high attack complexity.
Researcher notes
The reported weakness combines information exposure with unsafe redirect handling, mapped to CWE-200 and CWE-601. CVSS 3.1 is 3.7: network-accessible, high complexity, no privileges or user interaction, and low confidentiality impact without integrity or availability impact.
Mitigation direction
Upgrade datamodel-code-generator to version 0.63.0 or later.
Identify credentials used when retrieving remote schemas.
Rotate credentials if logs or endpoint behavior indicate possible cross-origin forwarding.
Restrict schema sources to trusted endpoints where operationally possible.
Validation and detection
Inventory installed datamodel-code-generator versions and flag releases below 0.63.0.
Review schema-generation configurations for remote URLs and sensitive headers.
Examine available network logs for cross-origin redirects during schema retrieval.
Confirm upgraded environments use version 0.63.0 or later.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-200: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
CWE-601: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-200 · source CWE mapping
Exposure of Sensitive Information to an Unauthorized Actor
Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
URL Redirection to Untrusted Site ('Open Redirect')
URL Redirection to Untrusted Site ('Open Redirect') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.