CVE-2026-25580Pydantic Ai
High 8.6 No auth needed
Follow: this CVE · Pydantic · Pydantic Ai We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 3.1
- 8.6
- EPSS
- —
- Auth required
- No
- Published
- Feb 6, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
What happens
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 0.0.26 to before 1.56.0, aServer-Side Request Forgery (SSRF) vulnerability exists in Pydantic AI's URL download functionality. When applications accept message history from untrusted sources, attackers can include malicious URLs that cause the server to make HTTP requests to internal network resources, potentially accessing internal services or cloud credentials. This vulnerability only affects applications that accept message history from external users. This vulnerability is fixed in 1.56.0.
What to do
- Apply the vendor's security update for Pydantic Ai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pydantic-ai |
≥ 0.0.26 < 1.56.0 |
1.56.0 |
pip install "pydantic-ai>=1.56.0" |
| PyPI | pydantic-ai |
≥ 0.0.26 < 1.56.0 |
1.56.0 |
pip install "pydantic-ai>=1.56.0" |
| PyPI | pydantic-ai-slim |
≥ 0.0.26 < 1.56.0 |
1.56.0 |
pip install "pydantic-ai-slim>=1.56.0" |
| PyPI | pydantic-ai-slim |
≥ 0.0.26 < 1.56.0 |
1.56.0 |
pip install "pydantic-ai-slim>=1.56.0" |
Per OSV / GitHub Advisories (GHSA-2jrp-274c-jhv3, PYSEC-2026-2976, PYSEC-2026-2980). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic_ai | ≥ 0.0.26 < 1.56.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Mitigation Vendor Advisory
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com