CISA list

● PyPI package

datamodel-code-generator

Datamodel-code-generator has 13 security advisories. The newest release any of them names as the fix is 0.81.0.

As of , datamodel-code-generator has 13 security advisories. The newest release any of them names as the fix is 0.81.0.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 0.81.00.81.013 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-107377GHSA-77xj-x4rm-935c, PYSEC-2026-4205datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directoryHigh severityFrom 0.59.0 before 0.81.00.81.0
CVE-2026-54654GHSA-wjv6-jcfj-mf9r, PYSEC-2026-3566`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` fieldHigh severityFrom 0.14.1 before 0.60.20.60.2
CVE-2026-55389GHSA-8359-h9fx-j6v9, PYSEC-2026-3558datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`High severityBefore 0.62.00.62.0
CVE-2026-54653GHSA-386q-5hp3-95m9, PYSEC-2026-3555`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema fieldHigh severityFrom 0.17.0 before 0.60.20.60.2
CVE-2026-55391GHSA-vx7x-vcc2-c44g, PYSEC-2026-3565datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebindingHigh severityBefore 0.63.00.63.0
CVE-2026-54656GHSA-8m8r-38jm-f355, PYSEC-2026-3559`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-dataHigh severityFrom 0.52.1 before 0.60.20.60.2
CVE-2026-54690GHSA-954p-556p-r752, PYSEC-2026-3560datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)High severityFrom 0.9.1 before 0.61.00.61.0
CVE-2026-55415GHSA-5578-w22f-pfx9, PYSEC-2026-3557datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statementsHigh severityFrom 0.11.6 before 0.64.00.64.0
CVE-2026-54621GHSA-j884-q54q-mmx3, PYSEC-2026-3561`datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union descriptionHigh severityFrom 0.25.0 before 0.60.10.60.1
CVE-2026-54655GHSA-m34r-v34r-rf9q, PYSEC-2026-3562`datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generatorHigh severityFrom 0.51.0 before 0.60.20.60.2
CVE-2026-55403GHSA-r5vv-ff45-prp2, PYSEC-2026-3563datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemasLow severityBefore 0.63.00.63.0
CVE-2026-54691GHSA-rfr2-mq9m-x2qx, PYSEC-2026-3564datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirectsHigh severityFrom 0.9.1 before 0.61.00.61.0
CVE-2026-55390GHSA-442q-2j6p-642g, PYSEC-2026-3556datamodel-code-generator vulnerable to arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gateHigh severityFrom 0.59.0 before 0.62.00.62.0

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0