PyPI/datamodel-code-generator CVE-2026-55389: high 7.5, EPSS 0.55%
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
Action: Upgrade datamodel-code-generator to 0.62.0 or later.
pip install datamodel-code-generator==0.62.0Affected
| introduced | fixed | last affected |
|---|---|---|
| 0 | 0.62.0 | - |
Fixed versions
| 0.62.0 |
Sources
- osv: GHSA-8359-h9fx-j6v9
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9
- https://github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fb
- https://github.com/koxudaxi/datamodel-code-generator
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0
CVE-2026-55389 · published · modified · JSON