datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversa...

Date Jul 28, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product PyPI ยท datamodel-code-generator
CVE CVE-2026-55389
High-risk advisory CVE-2026-55389

Summary

datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`

Why it matters

GitHub has published a reviewed security advisory for datamodel-code-generator. Prioritize it with other application dependency updates.

Operator check

Check whether datamodel-code-generator is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.