pydantic-ai@2.37.0

AI Agent Framework, the Pydantic way

  • latest version

    2.55.0

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the pydantic-ai 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
    • L
    Insertion of Sensitive Information into Log File

    pydantic-ai is an AI Agent Framework, the Pydantic way

    Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the OpenTelemetry instrumentation layer, specifically in record_exception and related span-recording helpers, when the include_content setting is disabled. Exception events recorded on model request spans and realtime spans include the full exception message and stack trace, which can contain content the setting is intended to withhold - such as tool retry payloads, model request/response echoes, validation error arguments, and user-supplied data. An authenticated attacker with access to the exported trace data can read sensitive content that should have been suppressed.

    How to fix Insertion of Sensitive Information into Log File?

    Upgrade pydantic-ai to version 1.107.6, 2.44.0 or higher.

    [0.3.4,1.107.6)[2.0.0b1,2.44.0)