pydantic-ai-slim@1.96.1

Agent Framework / shim to use Pydantic with LLMs, slim package

  • latest version

    1.102.0

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

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