PT-2026-65616 · Pypi · Datamodel-Code-Generator

CVE-2026-55403

·

Published

2026-07-28

·

Updated

2026-07-28

CVSS v3.1

3.7

Low

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions datamodel-code-generator versions prior to 0.63.0
Description When fetching remote schemas, the software re-sends original request headers to redirect targets even if the redirect changes the origin (host, port, or scheme). This occurs within the get body() function in src/datamodel code generator/http.py, which manually follows redirects without verifying if the origin remains the same. Consequently, sensitive headers such as Authorization, Cookie, and Proxy-Authorization can be leaked to an unauthorized or attacker-controlled host if the trusted schema host issues a cross-origin redirect. These leaked credentials could potentially be replayed against the trusted host.
Recommendations Update datamodel-code-generator to version 0.63.0.

Fix

Open Redirect

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-55403
GHSA-R5VV-FF45-PRP2

Affected Products

Datamodel-Code-Generator