Intel

AIKIDO-2026-968695

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

Server-Side Request Forgery (SSRF)GHSA-22h6-qm39-v87j Published Sep 18, 2026

37

Low Risk

This Affects:

PYTHONpydantic-ai-slim
1.77.0 - 1.107.5
Fixed in 1.107.6
2.0.0 - 2.43.0
Fixed in 2.44.0
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.

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.

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.

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform