CVE-2026-54691koxudaxi datamodel-code-generator
High 8.2 No auth needed
Follow: this CVE · koxudaxi · koxudaxi datamodel-code-generator We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Jul 28, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for datamodel-code-generator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | datamodel-code-generator |
≥ 0.9.1 < 0.61.0 |
0.61.0 |
pip install "datamodel-code-generator>=0.61.0" |
| PyPI | datamodel-code-generator |
≥ 0.9.1 < 0.61.0 |
0.61.0 |
pip install "datamodel-code-generator>=0.61.0" |
Per OSV / GitHub Advisories (GHSA-rfr2-mq9m-x2qx, PYSEC-2026-3564). Check the version in your lockfile before upgrading.
Affected products
- koxudaxi · datamodel-code-generator
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.