Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention37

Pydantic AI web chat UI vulnerability: websites visited by developers can trigger local agent execution and tool execution

Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): a website visited by the developer can trigger agent runs and server-side tool execution on the local chat endpoint

AI summary

Pydantic AI's development web chat UI (Agent.to_web(), clai web) does not validate the request content type of the chat endpoint, allowing websites visited by developers to submit requests to the chat UI running locally, causing the served agent to run and execute its tools with the local process's permissions and credentials. The default binding to localhost does not prevent this issue because pages opened in a browser can access loopback addresses. The impact includes applications and developers that serve agents via Agent.to_web() or clai web. The consequences depend on the tools exposed by the agent and may include data leakage and unintended tool side effects. Tools marked with requires_approval=True are also unprotected because the endpoint trusts the approval decision relayed by the client. If you cannot upgrade, avoid running the web UI while browsing untrusted websites, stop it when not in use, and do not serve tools with side effects through it. The vulnerability was reported by Thai Son Dinh of VinSOC Labs.

Why it was selected

Disclosed a vulnerability in a local web chat UI that, due to not validating Content-Type, allows any website to trigger agent tool execution, along with a patch and temporary mitigation.

Read originalgithub.com