Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Affected: datamodel-code-generator versions from 0.9.1 before 0.61.0. The built-in HTTP fetcher used by --url did not restrict target addresses and followed redirects, so a URL could reach loopback, private, or link-local (including cloud metadata) hosts. An attacker who controls a URL or redirect chain could get the response body written into generated Python source, where it can be read by anyone with access to that file. Upgrade to version 0.61.0, which blocks non-public targets by default and does not follow redirects unless opted in.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.2 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0026, the 17th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:10 UTC First seen by agentprime
- 31 Oct 2026, 14:10 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-rfr2-mq9m-x2qx
- OSV: GHSA-rfr2-mq9m-x2qx
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx
- github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb
- github.com/koxudaxi/datamodel-code-generator
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0