pydantic-ai-slim@2.52.0

AI Agent Framework, the Pydantic way, slim package

  • latest version

    2.57.0

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    2 days 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
    • H
    Missing Release of Resource after Effective Lifetime

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

    Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via ConcurrencyLimitedModel when streaming model responses. A RuntimeError is raised and a concurrency slot is leaked when a streamed response is iterated and closed on a different task than the one that acquired the slot, because the underlying anyio.CapacityLimiter ties each slot to the acquiring task. This causes the limiter to become permanently exhausted, blocking all subsequent agent runs that share the same ConcurrencyLimiter and effectively crashing the application's concurrency management.

    How to fix Missing Release of Resource after Effective Lifetime?

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

    [2.10.0,2.53.0)