{"cve":"CVE-2026-55391","nvd":{"published":"2026-07-28T22:17:48.697","modified":"2026-10-23T23:10:00.157","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N","score":7.5},"cwes":["CWE-350","CWE-367","CWE-918"],"references":["https://github.com/koxudaxi/datamodel-code-generator/commit/25c8b7e497419eb20b230fa3318c04f9bebc5a6f","https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.63.0","https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-vx7x-vcc2-c44g","https://gist.github.com/thegr1ffyn/c1d54dd6ff2a4c0d7d0dabe00c4985f4"],"products":["koxudaxi:datamodel-code-generator"],"source":"nvd","synced_at":"2026-10-24T16:53:27.712498749+00:00"},"epss":{"cve":"CVE-2026-55391","score":0.00305,"percentile":0.23046,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-vx7x-vcc2-c44g","url":"https://osv.dev/vulnerability/GHSA-vx7x-vcc2-c44g","summary":"datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding","modified":"2026-09-10T03:51:12.330952875Z","packages":[{"ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":["<0.63.0"],"fixed":["0.63.0"]}]},{"id":"PYSEC-2026-3565","url":"https://osv.dev/vulnerability/PYSEC-2026-3565","summary":"datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding","modified":"2026-08-04T14:30:15.997991650Z","packages":[{"ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":["<0.63.0"],"fixed":["0.63.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}