pydantic-ai-slim@1.56.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

    23 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) 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)