CVE-2026-55403: datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
When datamodel-code-generator fetches a remote schema and follows an HTTP redirect, it re-sends the original request headers, including any Authorization header, to the redirect target even when the redirect changes origin (host/port/scheme). Credentials that an operator scoped to a trusted schema host are therefore forwarded to an attacker-controlled or otherwise different host, leaking them.
References
- github.com/advisories/GHSA-r5vv-ff45-prp2
- github.com/koxudaxi/datamodel-code-generator/commit/a585c037c8307b7aae815de193b7fe1c4c44994b
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.63.0
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-r5vv-ff45-prp2
- nvd.nist.gov/vuln/detail/CVE-2026-55403
Code Behaviors & Features
Detect and mitigate CVE-2026-55403 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →