datamodel-code-generator@0.66.1

Datamodel Code Generator

  • latest version

    0.71.0

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    8 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the datamodel-code-generator package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Arbitrary Code Injection

    datamodel-code-generator is a Datamodel Code Generator

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the customBasePath schema field. An attacker can execute arbitrary Python code by supplying a specially crafted value containing embedded newlines and a dot-free Python expression, which is inserted verbatim into a generated import statement without proper validation. This code is then executed when the generated module is imported.

    How to fix Arbitrary Code Injection?

    Upgrade datamodel-code-generator to version 0.70.0 or higher.

    [,0.70.0)