Vulnerability · CVE-2026-25640
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI.
Published Feb 6, 2026 · catalog updated Jul 15, 2026 · Pydantic
Last checked Nov 5, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-25640. EPSS is 0.37%. Act only if a listed version of Pydantic is installed.
Gaps on this record
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
Same product and reporting
- CVE-2026-25580 · High
- Severity
- High7.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.37%
- Remediation
- Version ranges on file
- Affected products
- vendor Pydantic pydantic-ai 1.34.0, < 1.51.0
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 t
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor Pydantic pydantic-ai 1.34.0, < 1.51.01.34.0, < 1.51.0
How to fix CVE-2026-25640
Upgrade
CVE-2026-25640 lists a fix boundary at 1.51.0. Compare the installed build with that boundary before you change production.
Version check
Affected < 1.51.0
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-25640. EPSS is 0.37%. Act only if a listed version of Pydantic is installed.
Which versions are affected?
Compare what you have installed with Pydantic pydantic-ai 1.34.0, < 1.51.0 1.34.0, < 1.51.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 0.37%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Feb 6, 2026 · EUVD
Detected
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
Jul 15, 2026 · EUVD
Updated
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
Sources
- CVE.orgVulnerability recordCVE-2026-25640
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-25640
30-day exploitation probability 0.37%
first.org - EUVDVulnerability recordEUVD-2026-5593
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 craftin
euvd.enisa.europa.eu
References
Freshness
Last verified in this catalog Nov 5, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- FIRST EPSSNov 5, 2026
- CVE.orgNov 4, 2026
- EUVDNov 2, 2026