datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
Summary
| CVE | CVE-2026-55403 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-28 22:17:48 UTC |
| Updated | 2026-07-30 20:02:12 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 3.7 LOW from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS: 0.002110000 probability, percentile 0.115500000 (date 2026-08-01)
Problem Types: CWE-200 | CWE-601 | CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor | CWE-601 CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| 3.1 | CNA | DECLARED | 3.7 | LOW | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Koxudaxi | Datamodel-code-generator | affected < 0.63.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/koxudaxi/datamodel-code-generator/commit/a585c037c8307b7aae81... | [email protected] | github.com | |
| github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-r5... | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/koxudaxi/datamodel-code-generator/releases/tag/0.63.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.