Lucene search
+L
KoxudaxiDatamodel-code-generator

6 matches found

CVE
CVE
added 2026/07/28 9:45 p.m.63 views

CVE-2026-55391

CVE-2026-55391 affects the datamodel-code-generator project. Prior to version 0.63.0, the tool validates a URL host in http.py via get_body, _validate_url_for_fetch, and _get_ips_from_host, but then allows httpx to resolve the host again for the connection, enabling DNS rebinding to bypass allow_...

7.5CVSS5.9AI score0.00193EPSS
Save
CVE
CVE
added 2026/07/28 9:42 p.m.57 views

CVE-2026-54690

Summary: CVE-2026-54690 affects the datamodel-code-generator project. In versions 0.9.1 through 0.61.0, the tool silently dereferenced attacker-controlled JSON Schema $ref HTTP/HTTPS URLs via src/datamodel_code_generator/parser/jsonschema.py:_get_ref_body, and the --allow-remote-refs gate could w...

8.2CVSS5.8AI score0.00216EPSS
Save
CVE
CVE
added 2026/07/28 9:37 p.m.52 views

CVE-2026-55415

CVE-2026-55415 affects datamodel-code-generator prior to 0.64.0. The issue arises from attacker-controlled x-python-import or customTypePath schema extensions that can reach Import.from_full_path/Imports.create_line in the code that handles imports, allowing a newline to break out of an import st...

7.5CVSS6AI score0.00292EPSS
Save
CVE
CVE
added 2026/07/28 9:49 p.m.50 views

CVE-2026-55389

The CVE affects datamodel-code-generator (pre-0.62.0), where JSON Schema $ref resolution in src/datamodel_code_generator/parser/jsonschema.py using is_url/_get_ref_body could read arbitrary local files (via file:// or ../ traversal) when --no-allow-remote-refs is not honored. This could expose se...

7.5CVSS5.9AI score0.00374EPSS
Save
CVE
CVE
added 2026/07/28 9:48 p.m.49 views

CVE-2026-54653

The CVE affects the datamodel-code-generator project. From versions 0.17.0 through 0.60.2, the tool could preserve attacker-controlled default_factory values in JsonSchemaObject.init/get_field_extras, emitting them into Field(default_factory=...) and enabling Python expression execution when the ...

8.8CVSS6AI score0.00369EPSS
Save
CVE
CVE
added 2026/07/28 9:43 p.m.49 views

CVE-2026-54656

CVE-2026-54656 affects datamodel-code-generator (0.52.1–0.60.2). The issue arises when validators are interpolated from --extra-template-data into @field_validator decorators via _process_validators in src/datamodel_code_generator/model/pydantic_v2/base_model.py, enabling Python code execution up...

7.8CVSS6.3AI score0.00171EPSS
Save