github koxudaxi/datamodel-code-generator 0.61.0

8 hours ago

Breaking Changes

  • HTTP(S) schema fetching now blocks localhost, loopback, private, link-local, reserved, and other non-public network targets by default. Users who intentionally fetch schemas from trusted internal/private network endpoints must pass --allow-private-network or set allow_private_network=True.
  • HTTP(S) redirects are now followed manually and each redirect target is validated before fetching. Redirects to non-public network targets are blocked unless private network access is explicitly enabled.

Security

  • Fixed SSRF protections for HTTP(S) schema fetching via --url and remote JSON Schema/OpenAPI $ref URLs. (GHSA-rfr2-mq9m-x2qx, GHSA-954p-556p-r752)
  • Remote $ref fetching remains controlled by --allow-remote-refs; non-public remote references additionally require --allow-private-network.

What's Changed

  • Update CHANGELOG for 0.60.2 by @dcg-generated-docs[bot] in #3277
  • Fix generated files by @koxudaxi in #3279
  • Sync generated docs by @dcg-generated-docs[bot] in #3280

Full Changelog: 0.60.2...0.61.0

Don't miss a new datamodel-code-generator release

NewReleases is sending notifications on new releases.