Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. datamodel-code-generator
  4. ›
  5. CVE-2026-55403

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

July 28, 2026

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. Learn more about Dependency Scanning →

Affected versions

All versions before 0.63.0

Fixed versions

  • 0.63.0

Solution

Upgrade to version 0.63.0 or above.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/datamodel-code-generator/CVE-2026-55403.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:19 +0000.