datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas

Summary

CVECVE-2026-55403
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-28 22:17:48 UTC
Updated2026-07-30 20:02:12 UTC
Descriptiondatamodel-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')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
3.1CNADECLARED3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Koxudaxi Datamodel-code-generator affected < 0.63.0 Not specified

References

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report