pydantic-ai-slim@1.43.0

AI Agent Framework, the Pydantic way, slim package

  • latest version

    2.35.1

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    8 hours 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
    • C
    Server-side Request Forgery (SSRF)

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

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the download_item function. An attacker can access internal network resources, retrieve sensitive cloud metadata, or enumerate internal hosts by submitting URLs through message history.

    Note: This is only exploitable if the application accepts message history or file URLs from external users.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade pydantic-ai-slim to version 1.56.0 or higher.

    [0.0.26,1.56.0)
    • M
    Cross-site Scripting (XSS)

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

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the version query parameter used in constructing the CDN URL for serving frontend HTML. An attacker can execute arbitrary JavaScript in the victim's browser by tricking a user into visiting a malicious URL containing path traversal sequences, which causes the server to fetch and serve attacker-controlled HTML/JavaScript from the CDN. This can lead to theft of chat history and other client-side data.

    Note: This is only exploitable if the application uses Agent.to_web or clai web to serve the chat interface.

    How to fix Cross-site Scripting (XSS)?

    Upgrade pydantic-ai-slim to version 1.51.0 or higher.

    [1.34.0,1.51.0)