Intel

AIKIDO-2026-968695

pydantic-ai-slim is vulnerable to Server-Side Request Forgery (SSRF)

CVE-2026-107288Published Sep 18, 2026
September 18, 2026

37

CVE Score

Low

Server-Side Request Forgery (SSRF)

Are you affected? Scan for Free

TL;DR

The local web_fetch_tool's allowed_domains/blocked_domains lists compare a hostname to their entries by exact string match, without putting either side in the form the DNS resolver actually uses. A hostname written with fullwidth or other non-ASCII label separator characters resolves to a blocked domain while the string comparison reads it as a different name, letting a model chosen URL reach a domain the list was meant to block. The fix compares both the request hostname and the list entries in the ASCII form the resolver produces before matching.

How do I fix this?

Upgrade the pydantic-ai-slim and/or the pydantic-ai library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you rely on blocked_domains on the local web-fetch tool to restrict which hosts a model chosen URL may reach.

Versions

1.77.0 - 1.107.5

Fixed in 1.107.6

2.0.0 - 2.43.0

Fixed in 2.44.0

Background info

pydantic-ai-slim is vulnerable to Server-Side Request Forgery (SSRF) in versions 1.77.0 - 1.107.5 and 2.0.0 - 2.43.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea