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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| koxudaxi | datamodel-code-generator | < 0.63.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-datamodel-code-generator | 0.72.3-1.1 | openSUSE-SU-2026:11538-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | datamodel-code-generator | < 0.63.0 | 0.63.0 | GHSA-r5vv-ff45-prp2 |
Advisories 1
- openSUSE-SU-2026:11538-1 python313-datamodel-code-generator-0.72.3-1.1 on GA media SUSE / openSUSE Security Updates · Aug 19, 2026