SCA: security update for pydantic-ai, pydantic-ai-slim (GHSA-wjp5-868j-wqv7)

medium Tenable Self-Hosted Container Security Plugin ID 437613

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From
1.34.0 to before 1.51.0, a path traversal vulnerability in the Pydantic AI web UI allows an attacker to
serve arbitrary JavaScript in the context of the application by crafting a malicious URL. In affected
versions, the CDN URL is constructed using a version query parameter from the request URL. This parameter
is not validated, allowing path traversal sequences that cause the server to fetch and serve attacker-
controlled HTML/JavaScript from an arbitrary source on the same CDN, instead of the legitimate chat UI
package. If a victim clicks the link or visits it via an iframe, attacker-controlled code executes in
their browser, enabling theft of chat history and other client-side data. This vulnerability only affects
applications that use Agent.to_web to serve a chat interface and clai web to serve a chat interface from
the CLI. These are typically run locally (on localhost), but may also be deployed on a remote server. This
vulnerability is fixed in 1.51.0. (CVE-2026-25640)

See Also

https://github.com/advisories/GHSA-wjp5-868j-wqv7

Plugin Details

Severity: Medium

ID: 437613

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 2/6/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.1

Percentile: 7.79

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2026-25640

CVSS v3

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/6/2026

Vulnerability Publication Date: 2/6/2026

Reference Information

CVE: CVE-2026-25640