Security mailing lists by PureSourceCode

CVE-2026-55391

HIGH 7.5CVSS 3.1

datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding

datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. Prior to 0.63.0, datamodel-code-generator validates a URL host once in src/datamodel_code_generator/http.py through get_body, _validate_url_for_fetch, and _get_ips_from_host, but then lets httpx resolve the host again for the connection, allowing DNS rebinding to bypass allow_private_network=False and reach internal services. This issue is fixed in version 0.63.0.

Published
28 Jul 2026
Last modified
23 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-350CWE-367CWE-918
Also known as
GHSA-vx7x-vcc2-c44gPYSEC-2026-3565
Sources
NVDJSONOSV GHSA-vx7x-vcc2-c44gJSONOSV PYSEC-2026-3565JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD koxudaxi datamodel-code-generator
cpe:2.3:a:koxudaxi:datamodel-code-generator:*:*:*:*:*:*:*:*
< 0.63.0 0.63.0
OSV PyPI datamodel-code-generator < 0.63.0 0.63.0

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 28 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.