datamodel-code-generator
Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV.
Activity
- Latest release
- 12h ago
- Total releases
- 285
- Cadence
- ~2 days
- Last 12 months
- 70
Reach
- Stars
- 4.0k
Details
- License
- MIT
- First release
- Jul 23, 2019
| Version | Released | |
|---|---|---|
0.81.0
minor
| ||
0.80.0
minor
| ||
0.79.0
minor
| ||
0.78.0
minor
| ||
0.77.0
minor
| ||
0.76.2
patch
| ||
0.76.1
patch
| ||
0.76.0
minor
| ||
0.75.1
patch
| ||
0.75.0
minor
| ||
0.74.0
minor
| ||
0.73.0
minor
| ||
0.72.4
patch
| ||
0.72.3
patch
| ||
0.72.2
patch
| ||
0.72.1
patch
| ||
0.72.0
minor
| ||
0.71.0
minor
| ||
0.70.0
minor
| ||
0.69.0
minor
| ||
0.68.1
patch
| ||
0.68.0
minor
| ||
0.67.0
minor
| ||
0.66.3
patch
| ||
0.66.2
patch
| ||
0.66.1
patch
| ||
0.66.0
minor
| ||
0.65.1
patch
| ||
0.65.0
minor
| ||
0.64.1
patch
| ||
0.64.0
minor
| ||
0.63.0
minor
1 CVE
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.62.0
minor
3 CVEs
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.61.0
minor
5 CVEs
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.60.2
patch
7 CVEs
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.60.1
patch
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.60.0
minor
12 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.59.1
patch
12 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.59.0
minor
12 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55390
PYSEC-2026-3556
GHSA-442q-2j6p-642g
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
SummaryWhen generating models from an XML Schema ( DetailsThe XSD parser walks include-style children and reads each
Related vectors that were tested and do NOT apply (stdlib PoCSelf-contained reproducer (creates a temp dir, runs the generator, cleans up): https://gist.github.com/thegr1ffyn/c7096b797926348875d888652867eeb4 ( Minimal manual reproduction:
An absolute ImpactArbitrary local file read / path traversal (CWE-22) leading to information disclosure (CWE-200). Any application, CI pipeline, or multi-tenant service that generates models from an attacker-supplied XSD and exposes (returns, logs, commits, renders) the generated code is affected. The attacker can read files outside the input tree whose data is addressable as XSD content (other schemas, configs), and the read itself is an arbitrary-file-access primitive. No flag mitigates it. The attacker controls only the input schema; no authentication or special privileges are required. (Raw bytes of files that are not valid XML are read into the process but not echoed verbatim, since parsing fails; verbatim disclosure applies to XML/XSD-shaped data.) Suggested remediationReject resolved Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: reject XSD Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.58.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.57.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.56.1
patch
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.56.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.55.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.54.1
patch
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.54.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.53.0
minor
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.52.2
patch
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.52.1
patch
11 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54656
PYSEC-2026-3559
GHSA-8m8r-38jm-f355
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
SummaryWhen the Pydantic v2 output mode is in use, DetailsSink:
The strings from (A) and (B) flow verbatim into
There is no Secondary sink at (C): PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/34d5c647e74487ffb2be27c76dace2aa ImpactArbitrary code execution in the developer's interpreter / CI runner the moment the generated module is imported. Anyone who accepts a
Same blast radius as GHSA-wjv6-jcfj-mf9r, but silent RCE rather than a docstring leak — significantly higher impact under the same threat model.
ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
+ 2 more Show less
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev | ||
0.52.0
minor
10 CVEs
CVE-2026-54654
PYSEC-2026-3566
GHSA-wjv6-jcfj-mf9r
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable templates each contain
The
When the developer-supplied extras file populates PoCComplete self contained POC is available at my secret gist: https://gist.github.com/thegr1ffyn/8ad6b8cb3cc2be9d3a0144aeb6896a3f Impact
ResolutionThe fix normalizes RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
+ 82 more Show less
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55389
PYSEC-2026-3558
GHSA-8359-h9fx-j6v9
Aug 04, 2026
datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
7.5
/ 10
High
Network
Low
None
None
Unchanged
High
None
None
Summary
This is an unauthenticated path-traversal / information-disclosure issue (CWE-22 / CWE-200) plus a bypass of a documented security control. Details
The remote-ref gate then explicitly exempts
Both local-file branches read the target with no containment check. The
and the plain relative branch lets
For contrast, the HTTP-local-ref branch ( The fetched file is read and parsed, yielding two impacts:
Scope note (to avoid overstating): the raw bytes of unstructured files such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/2a87e81f985883acc30d0118c52da4d3 / (
ImpactArbitrary local file read / path traversal (CWE-22) → information disclosure (CWE-200), plus bypass of Suggested remediation
Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: apply the remote-ref gate to Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 240 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.62.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54653
PYSEC-2026-3555
GHSA-386q-5hp3-95m9
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
Summary
DetailsThe vulnerable chain spans the JSON-Schema-shaped parser and three sink locations (Pydantic v2, dataclass, msgspec): Source — schema →
Sinks —
Because Confirmed PoC matrix| Input file type | Output model type | Result |
|---|---|---|
| Other JSON-Schema-shaped inputs ( PoCSelf contained Proof of Concept is available at my secret gist: https://gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf Impact
ResolutionThe fix validates schema-provided RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
+ 78 more Show less
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55391
PYSEC-2026-3565
GHSA-vx7x-vcc2-c44g
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
7.5
/ 10
High
Network
High
None
None
Changed
High
Low
None
Summary
DetailsIn
It then connects with a separate, independent resolution:
Nothing ties the connection to the IP that passed validation. Between the two resolutions a low-TTL attacker-controlled record can flip from a public address (passes the guard) to a private one (used by the connection). The redirect-handling loop in the same function does correctly re-validate each redirect URL, so this is specifically a TOCTOU/rebinding gap in the host-to-IP check, not a redirect issue. PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4
It starts a loopback HTTP server standing in for an internal target and patches Reachability in normal use: the attacker registers a rebinding hostname and gets the tool to fetch ImpactServer-side request forgery (CWE-918) via a time-of-check/time-of-use resolution gap (CWE-367). Any service or CI pipeline that runs Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: pin the validated DNS result set during the HTTP fetch so a host cannot resolve to a safe address during validation and a different address during connection. Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54690
PYSEC-2026-3560
GHSA-954p-556p-r752
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
SummaryJSON-Schema DetailsSink:
The fetched body is then parsed as a sub-schema and merged into the model graph, so Only affects users who installed the PoCA self-contained one-file PoC is available here: https://gist.github.com/thegr1ffyn/562a6972d7dc3f2869458ae93fc608c0 ImpactWho is impacted. Anyone running
Higher real-world risk than the sibling CLI-flag SSRF (other SSRF in this report bundle) because the schema author chooses the destination — the developer doesn't have to type any URL. Suggested fix.
Maintainer resolutionThis No separate net code diff remains in the GHSA-954 private PR because the shared HTTP fetcher patch is already present on The fix does not flip the Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55415
PYSEC-2026-3557
GHSA-5578-w22f-pfx9
Aug 04, 2026
datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements
7.5
/ 10
High
Network
High
None
Required
Unchanged
High
High
High
SummaryA malicious input schema (OpenAPI / JSON Schema) can execute arbitrary Python code on the machine that imports the generated model. The DetailsThe sink is
There is no check that the path segments are Python identifiers, contrast Two schema-controlled, default-config entry points reach this sink:
Mechanism. With
The dot-split is the only constraint on the payload; it is trivially satisfied with attribute-free builtins (e.g. None of the six v0.61.0 fix commits ( PoCSelf contained POC available here: https://gist.github.com/thegr1ffyn/c3abb41bb89c164daa0d5f2c60b5328b Default invocation, no special flags, on the patched release (commit
Generate and import:
Generated
Importing
Confirmed under both the default output (pydantic v1) and
A benign control ( Suggested fix. Validate every dotted segment of ImpactArbitrary code execution at model-import time, driven by attacker-controlled schema content under the default configuration. Anyone who runs datamodel-code-generator on an untrusted or third-party schema, multi-tenant code-generation services, CI pipelines that ingest external specs, or a developer generating models from a public/vendor OpenAPI/JSON-Schema document, and then imports (or whose tooling imports) the generated module, executes the attacker's code with the importing process's privileges. The PoC demonstrates arbitrary local file read ( Maintainer statusConfirmed by maintainer review and regression tests. A private fix PR is open and should be merged before publishing this advisory: https://github.com/koxudaxi/datamodel-code-generator-ghsa-5578-w22f-pfx9/pull/1 Fix summary: validate Release status: not fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.20
0.11.6
+ 112 more Show less
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.63.0
Fixed in
0.64.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54621
PYSEC-2026-3561
GHSA-j884-q54q-mmx3
Aug 04, 2026
`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
This affects versions DetailsThe vulnerable output was generated by the GraphQL Union templates:
Before The Jinja2 The ImpactAn attacker who can provide or influence a GraphQL schema processed by This can affect developers, CI pipelines, or applications that run No custom templates, special CLI flags, or remote reference options are required. RemediationUpgrade to The fix normalizes carriage returns in GraphQL Union descriptions before rendering them as Python comments, so injected text remains inside the comment block. ResolutionThe fix applies Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
+ 58 more Show less
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
Fixed in
0.60.1
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54655
PYSEC-2026-3562
GHSA-m34r-v34r-rf9q
Aug 04, 2026
`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator
7.8
/ 10
High
Local
Low
None
Required
Unchanged
High
High
High
Summary
DetailsSink:
The only sanitiser — the dot-rewrite at the marked line — fires only when
Output-model types confirmed vulnerable in testing: PoCA self-contained PoC is available at: https://gist.github.com/thegr1ffyn/1a7ff2561a581074c49785230b2c5700 ImpactArbitrary code execution in the developer's interpreter / CI runner as soon as the generated module is imported. Reachable from any workflow that ingests an untrusted JSON Schema:
The compromise is silent: the schema is valid JSON, the generator emits syntactically clean Python (the trojan statement is a single indented line in the class body), and only the use of the generated file triggers the payload. Anyone running ResolutionThe fix validates RemediationUpgrade to This issue affects Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
+ 4 more Show less
0.59.0
0.59.1
0.60.0
0.60.1
Fixed in
0.60.2
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-55403
PYSEC-2026-3563
GHSA-r5vv-ff45-prp2
Aug 04, 2026
datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas
3.7
/ 10
Low
Network
High
None
None
Unchanged
Low
None
None
SummaryWhen DetailsIn
Browsers and HTTP clients such as PoCSelf-contained reproducer: https://gist.github.com/thegr1ffyn/ade3035d7f2be95e16f11698259cdbc2 (The PoC uses loopback servers; ImpactExposure of sensitive information to an unauthorized actor (CWE-200). Affects operators who pass authentication headers/credentials to fetch a remote schema ( Suggested remediationWhen a redirect changes the origin (scheme/host/port), drop Maintainer statusConfirmed by maintainer review and regression tests. The private fix PR was merged and released in Fix summary: strip Release status: fixed in Validation: Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.1.0
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
+ 241 more Show less
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.2.0
0.2.1
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.3.0
0.3.1
0.3.2
0.3.3
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.4.0
0.4.1
0.4.10
0.4.11
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.5.0
0.5.1
0.5.10
0.5.11
0.5.12
0.5.13
0.5.14
0.5.15
0.5.16
0.5.17
0.5.18
0.5.19
0.5.2
0.5.20
0.5.21
0.5.22
0.5.23
0.5.24
0.5.25
0.5.26
0.5.27
0.5.28
0.5.29
0.5.3
0.5.30
0.5.31
0.5.32
0.5.33
0.5.34
0.5.35
0.5.36
0.5.37
0.5.38
0.5.39
0.5.4
0.5.5
0.5.6
0.5.7
0.5.8
0.5.9
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.6.0
0.6.1
0.6.10
0.6.11
0.6.12
0.6.13
0.6.14
0.6.15
0.6.16
0.6.17
0.6.18
0.6.19
0.6.2
0.6.20
0.6.21
0.6.22
0.6.23
0.6.24
0.6.25
0.6.26
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.60.0
0.60.1
0.60.2
0.61.0
0.62.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.63.0
References
Updated Aug 04, 2026 · Source: OSV.dev
CVE-2026-54691
PYSEC-2026-3564
GHSA-rfr2-mq9m-x2qx
Aug 04, 2026
datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
8.2
/ 10
High
Network
Low
None
Required
Changed
High
Low
None
Summary
DetailsSink:
Only affects users who installed the PoCA self-contained one-file PoC available here: https://gist.github.com/thegr1ffyn/18de777d6c800a3b47715425e3f3e8f5 ImpactWho is impacted. Anyone who runs
Suggested fix. Resolve the URL host, reject loopback / private / link-local / multicast / reserved IPs by default, disable redirects by default ( Maintainer resolutionThis report was fixed together with GHSA-954p-556p-r752 by the private security PR koxudaxi/datamodel-code-generator-ghsa-rfr2-mq9m-x2qx#1, merged into the public repository as 5fdba4a09f2d7a9996a504975b7ef7d63e3715bb. Follow-up generated-file and coverage fixes were merged in koxudaxi/datamodel-code-generator#3279 and docs were synced in #3280. The patched release is 0.61.0. The patch hardens the shared HTTP fetcher used by both direct CLI
Remote Submitted by: Hamza Haroon (thegr1ffyn) Affected versions
0.10.0
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
0.11.10
0.11.11
0.11.12
0.11.13
0.11.14
0.11.15
+ 123 more Show less
0.11.16
0.11.17
0.11.18
0.11.19
0.11.2
0.11.20
0.11.3
0.11.4
0.11.5
0.11.6
0.11.7
0.11.8
0.11.9
0.12.0
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.14.0
0.14.1
0.15.0
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.18.0
0.18.1
0.19.0
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.22.0
0.22.1
0.23.0
0.24.0
0.24.1
0.24.2
0.25.0
0.25.1
0.25.2
0.25.3
0.25.4
0.25.5
0.25.6
0.25.7
0.25.8
0.25.9
0.26.0
0.26.1
0.26.2
0.26.3
0.26.4
0.26.5
0.27.0
0.27.1
0.27.2
0.27.3
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.28.5
0.29.0
0.30.0
0.30.1
0.30.2
0.31.0
0.31.1
0.31.2
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.37.0
0.38.0
0.39.0
0.40.0
0.41.0
0.42.0
0.42.1
0.42.2
0.43.0
0.43.1
0.44.0
0.45.0
0.46.0
0.47.0
0.48.0
0.49.0
0.50.0
0.51.0
0.52.0
0.52.1
0.52.2
0.53.0
0.54.0
0.54.1
0.55.0
0.56.0
0.56.1
0.57.0
0.58.0
0.59.0
0.59.1
0.60.0
0.60.1
0.60.2
0.9.1
0.9.2
0.9.3
0.9.4
Fixed in
0.61.0
References
Updated Aug 04, 2026 · Source: OSV.dev |