pydantic@0.6.1 vulnerabilities

Data validation using Python type hints

  • latest version

    2.10.4

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the pydantic package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Regular Expression Denial of Service (ReDoS)

    pydantic is a Data validation and settings management using python 3.6 type hinting

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the validate_email function due to improper limitation of mail length and the usage of an insecure regular expression.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade pydantic to version 1.10.13, 2.4.0 or higher.

    [,1.10.13)[2.0a1,2.4.0)
    • M
    Regular Expression Denial of Service (ReDoS)

    pydantic is a Data validation and settings management using python 3.6 type hinting

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression in the networks.py file.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade pydantic to version 1.10.13, 2.4.0 or higher.

    [,1.10.13)[2.0a1,2.4.0)
    • L
    Denial of Service (DoS)

    pydantic is a Data validation and settings management using python 3.6 type hinting

    Affected versions of this package are vulnerable to Denial of Service (DoS). Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic. Passing either 'infinity', 'inf' or float('inf') (or their negatives) to datetime or date fields causes validation to run forever with 100% CPU usage (on one CPU).

    How to fix Denial of Service (DoS)?

    Upgrade pydantic to version 1.6.2, 1.7.4, 1.8.2 or higher.

    [,1.6.2)[1.7,1.7.4)[1.8,1.8.2)