datamodel-code-generator@0.30.2 vulnerabilities

Datamodel Code Generator

  • latest version

    0.53.0

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    20 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
    • M
    Arbitrary Code Injection

    datamodel-code-generator is a Datamodel Code Generator

    Affected versions of this package are vulnerable to Arbitrary Code Injection due to improper sanitization of filenames used in generated headers. An attacker can provide a maliciously crafted filename containing Python syntax or escape characters.

    How to fix Arbitrary Code Injection?

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

    [,0.31.2)