FR
live
High CVSS 8.2

CVE-2026-54690

Koxudaxi Datamodel-code-generator

datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.9.1 until 0.61.0, datamodel-code-generator silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs in src/datamodel_code_generator/parser/jsonschema.py through _get_ref_body, and the --allow-remote-refs gate can warn instead of blocking, allowing server-side request forgery through src/datamodel_code_generator/http.py. This issue is fixed in version 0.61.0.

What this means

Exposure
Exploitable remotely over the network and without authentication — but only if a user opens booby-trapped content.
Impact
An attacker can read sensitive data and alter some data. The impact spreads beyond the vulnerable component into other parts of the system.
Weakness
The server issues a request to an attacker-chosen address, reaching into the internal network (SSRF).
Likelihood
Its EPSS score stays low: nothing points to imminent exploitation, which is no reason to leave it unpatched.

What to doFold into the next patch cycle.

Read automatically from the CVSS vector, the weakness type (CWE) and the EPSS score. The technical description above remains the one published by NIST.

Published
28 July 2026
CVSS
8.2 (v3.1) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
EPSS
0.26% probability of exploitation within 30 days · above 17% of all CVEs
Weakness
CWE-918
Sources
nvd
References

Type at least two characters.

navigate open esc dismiss