Intel

AIKIDO-2026-338559

datamodel-code-generator is vulnerable to Exposure of Sensitive Information

CVE-2026-55403Published Jun 18, 2026
June 18, 2026

37

CVE Score

Low

Exposure of Sensitive Information

Are you affected? Scan for Free

TL;DR

When datamodel-code-generator fetches a remote schema and follows HTTP redirects manually, it re-sends the original request headers, including Authorization, Cookie, and Proxy-Authorization, even when a redirect changes origin. An operator who scopes credentials to a trusted schema host can leak them to an attacker-controlled redirect target via a compromised host or attacker-influenced $ref. The fix strips sensitive headers on cross-origin redirects while preserving them for same-origin hops.

How do I fix this?

Upgrade the datamodel-code-generator library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass authentication headers or URL credentials when fetching remote schemas.

Versions

0.0.1 - 0.62.0

Fixed in 0.63.0

Background info

datamodel-code-generator is vulnerable to Exposure of Sensitive Information in versions 0.0.1 - 0.62.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea