PatchSiren cyber security CVE debrief
CVE-2026-54691 koxudaxi CVE debrief
CVE-2026-54691 is a high-severity server-side request forgery vulnerability in the datamodel-code-generator Python package, allowing attackers to access loopback, private, link-local, metadata, and other network-accessible resources without host/IP validation. The issue exists from version 0.9.1 until 0.61.0 and is fixed in version 0.61.0. Defenders should assess exposure in their Python environments and apply the fix. Evidence on specific exploitation or impact is limited, making verification and remediation crucial.
- Vendor
- koxudaxi
- Product
- datamodel-code-generator
- CVSS
- HIGH 8.2
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-28
- Original CVE updated
- 2026-10-23
- Advisory published
- 2026-07-28
- Advisory updated
- 2026-10-23
Who should care
Defenders responsible for Python environments using the datamodel-code-generator package should assess exposure and apply the fix. This includes teams managing dependencies in their Python projects.
Why it matters
CVE-2026-54691 is a high-severity server-side request forgery vulnerability in the datamodel-code-generator package. Defenders should prioritize verifying exposure in their Python environments and apply the fix from version 0.61.0. Evidence is limited on specific exploitation or impact, so verification and remediation are crucial.
- Potential unauthorized access to sensitive network resources.
- Possible data breaches or leaks due to SSRF.
- Need for verification of exposure in Python environments.
- Priority on updating to version 0.61.0 or later.
Technical summary
The datamodel-code-generator package generates Python data models from schema definitions. Versions from 0.9.1 until 0.61.0 contain a server-side request forgery vulnerability due to missing host/IP validation in the http.get_body function. This allows attackers to access loopback, private, link-local, metadata, and other network-accessible resources. The vulnerability is fixed in version 0.61.0, and defenders should prioritize verifying exposure in their Python environments and applying the fix. Evidence on specific exploitation or impact is limited.
Defensive priority
Defenders should prioritize verifying exposure in their Python environments using the affected package version and applying the fix from version 0.61.0.
Recommended defensive actions
- Verify if Python environments are using affected versions of the datamodel-code-generator package.
- Apply the fix by updating to version 0.61.0 or later.
- Monitor for potential exploitation attempts targeting this vulnerability.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, affected versions, and fixed version. However, additional information on potential exploitation or specific attack scenarios is limited.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-54691 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-54691
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-54691 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54691
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb
-
Source reference
Unverified legacy reference
URL: https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0
-
Source reference
Unverified legacy reference
URL: https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.