pydantic-ai-slim@1.103.0

AI Agent Framework, the Pydantic way, slim package

  • latest version

    2.35.0

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    3 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
    • M
    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) through UIAdapter.sanitize_messages in pydantic_ai_slim/pydantic_ai/ui/_adapter.py and VercelAIAdapter.from_request/dispatch_request in pydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py. An attacker can cause the server to fetch arbitrary provider or cloud-storage files with its own credentials by submitting message history that contains client-controlled UploadedFile references in providerMetadata. This lets the attacker read files the application’s model-provider or storage identity can access, exposing private objects or other tenants’ data to the user.

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

    Upgrade pydantic-ai-slim to version 1.106.0, 2.0.0b6 or higher.

    [1.65.0,1.106.0)[2.0.0b1,2.0.0b6)