CVE-2026-55403

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

Published Jul 28, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r5vv-ff45-prp2 datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Koxudaxi
Koxudaxi datamodel-code-generator
Vendors & Products Koxudaxi
Koxudaxi datamodel-code-generator
Type Values Removed Values Added
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.
Title datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
Weaknesses CWE-200
CWE-601
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 29, 2026, 12:46 PM
Reserved
Jun 16, 2026, 9:48 PM
Status
Deferred
Published
Jul 28, 2026, 10:17 PM
Modified
Oct 23, 2026, 11:10 PM