{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-25640","published":"2026-02-06T20:16:11.110000Z","last_modified":"2026-07-15T02:18:55.463000Z","status":"Modified","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22","CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*","part":"a","vendor":"pydantic","product":"pydantic_ai","version_start_including":"1.34.0","version_end_excluding":"1.51.0"}],"cpes_truncated":false,"vendors":["pydantic"],"products":["pydantic/pydantic_ai"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-wjp5-868j-wqv7","ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[{"introduced":"1.34.0","fixed":"1.51.0"}],"versions":["1.34.0","1.35.0","1.36.0","1.37.0","1.38.0","1.39.0","1.39.1","1.40.0","1.41.0","1.42.0","1.43.0","1.44.0","1.46.0","1.47.0","1.48.0","1.49.0","1.50.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-2979","ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[{"introduced":"1.34.0","fixed":"1.51.0"}],"versions":["1.34.0","1.35.0","1.36.0","1.37.0","1.38.0","1.39.0","1.39.1","1.40.0","1.41.0","1.42.0","1.43.0","1.44.0","1.46.0","1.47.0","1.48.0","1.49.0","1.50.0"],"versions_truncated":false},{"advisory":"GHSA-wjp5-868j-wqv7","ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[{"introduced":"1.34.0","fixed":"1.51.0"}],"versions":["1.34.0","1.35.0","1.36.0","1.37.0","1.38.0","1.39.0","1.39.1","1.40.0","1.41.0","1.42.0","1.43.0","1.44.0","1.46.0","1.47.0","1.48.0","1.49.0","1.50.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-2983","ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[{"introduced":"1.34.0","fixed":"1.51.0"}],"versions":["1.34.0","1.35.0","1.36.0","1.37.0","1.38.0","1.39.0","1.39.1","1.40.0","1.41.0","1.42.0","1.43.0","1.44.0","1.46.0","1.47.0","1.48.0","1.49.0","1.50.0"],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-25640/","html_en":"/en/cve/CVE-2026-25640/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-25640","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-25640"},"untrusted":{"vendor_name":"Pydantic","product_name":"Pydantic Ai","desc_en":"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.","affected":[{"untrusted_vendor":"pydantic","untrusted_product":"pydantic-ai","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux AI (RHEL AI) 3","versions":[]}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.51.0","tags":["Product","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-wjp5-868j-wqv7","tags":["Vendor Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25640","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2437753","tags":[]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25640.json","tags":[]}]}}