pydantic-ai-slim@1.86.1

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

    9 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)
    • 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) due to the blocklist bypass via additional IPv6 transition forms when force_download='allow-local' is enabled. An attacker can access sensitive cloud IAM short-term credentials by bypassing the cloud-metadata blocklist using IPv6 transition forms such as IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses. This is only exploitable if the application is running on a network that routes the affected IPv6 transition forms, such as NAT64-configured networks or networks with an ISATAP tunnel.

    Note:

    This issue is due to incomplete fix for CVE-2026-46678.

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

    Upgrade pydantic-ai-slim to version 1.102.0, 2.0.0b3 or higher.

    [1.56.0,1.102.0)[2.0.0b1,2.0.0b3)
    • 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) via incomplete blocklist in is_private_ip function when force_download='allow-local' is enabled. An attacker can access sensitive cloud metadata information by submitting a specially crafted URL containing an IPv4-mapped IPv6, 6to4, or NAT64 encoded address that bypasses the intended blocklist. This is only exploitable if the application explicitly opts for FileUrl (ImageUrl, AudioUrl, VideoUrl, DocumentUrl) in force_download='allow-local' on a URL that is, or could be, influenced by untrusted input.

    Note:

    This issue is due to incomplete fix for CVE-2026-25580.

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

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

    [1.56.0,1.99.0)