cve.bz

CVE-2026-54691

8.2 highEPSS 0.3%

datamodel-code-generator generates Python data models from schema definitions. From 0.9.1 until 0.61.0, src/datamodel_code_generator/http.py http.get_body accepts --url targets and redirect chain targets without host/IP validation, allowing server-side request forgery against loopback, private, link-local, metadata, and other network-accessible resources. This issue is fixed in version 0.61.0.

CVSS 3.1
8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
EPSS
0.3% chance of exploitation in the next 30 days; higher than 17% of CVEs (scores of 2026-10-25)
CWE
CWE-918
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rfr2-mq9m-x2qxPyPIdatamodel-code-generator>=0.9.1 <0.61.00.61.0
PYSEC-2026-3564PyPIdatamodel-code-generator>=0.9.1 <0.61.00.61.0

References

Check your stackJSON