pydantic-ai-slim@1.107.6

AI Agent Framework, the Pydantic way, slim package

  • latest version

    2.71.0

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the pydantic-ai-slim 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
    Inefficient Algorithmic Complexity

    pydantic-ai-slim is an Agent Framework / shim to use Pydantic with LLMs, slim package

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the _convert_html function in web_fetch.py, where processing a deeply nested or adversarially structured HTML document causes unbounded HTML-to-Markdown conversion cost. An attacker who controls a web page fetched via the web_fetch tool can serve HTML with deeply nested elements (such as <dd> or list items) that cause the markdownify-based converter to produce enormous intermediate strings, holding the GIL for seconds and crashing the process.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade pydantic-ai-slim to version 2.52.0, 1.107.7 or higher.

    [2.0.0b1,2.52.0)[1.77.0,1.107.7)