Pydantic Deep Agents: four flaws in the research app and the CLI's MCP trust
Four advisories in Pydantic Deep Agents expose its research web app to unauthenticated callers and trust a project's own MCP config.
· Vstorm · Research by Shmulik Cohen (Apiiro), barnessomer
Pydantic Deep Agents 0.4.0 fixes four high-severity flaws: the bundled DeepResearch app answered unauthenticated callers, and the CLI loaded MCP servers from whatever project it started in. Vstorm published all four on 26 November 2026.
01What happened
Vstorm published four high-severity advisories for Pydantic Deep Agents on 26 November 2026 and fixed all of them in release 0.4.0. Shmulik Cohen, an AI security researcher at Apiiro, reported two of them, and barnessomer reported a third. The project is an MIT-licensed terminal coding agent and Python framework built on Pydantic AI, and it is not an official Pydantic release.
02How it works
Three of the four flaws sit in DeepResearch, the reference research app the project ships. Its HTTP routes and /ws/chat WebSocket needed no authentication, so anyone who could reach the server could read session data and drive the agent. Its session delete took a client-supplied session id and used it to choose a directory, so a crafted id reached data outside that session, and its PDF export rendered report text with resource loading on, turning untrusted content into server-side requests. The fourth flaw is in the CLI: with the MCP extra installed it read MCP server declarations from the current project, so starting a turn in an untrusted repository could launch a server process that the repository chose.
03Who is affected
Versions 0.2.18 up to 0.4.0 of the pydantic-deep PyPI package carry the three DeepResearch flaws, and the MCP trust flaw starts at 0.3.23. Only deployments that bind DeepResearch to a reachable interface are exposed to the network flaws, because the app listens on loopback by default. The CLI flaw needs the MCP extra installed and an untrusted project directory.
04What to do
Upgrade to Pydantic Deep 0.4.0 or later, which ships DeepResearch 0.2.0, and set DEEPRESEARCH_PASSWORD before starting the app. After upgrading, re-add trusted MCP servers through /mcp and sign in again to OAuth providers, because 0.4.0 moves MCP settings to the user configuration directory and leaves Claude Code imports disabled until enabled.
Questions people ask
- Which versions of Pydantic Deep Agents are affected?
- Pydantic Deep Agents carries the three DeepResearch flaws in pydantic-deep 0.2.18 up to 0.4.0, and the CLI MCP trust flaw from 0.3.23 up to 0.4.0. Vstorm fixed all four in 0.4.0 on 26 November 2026, which bundles DeepResearch 0.2.0. Release 0.4.2 is the current version and requires Python 3.11 or later.
- Is Pydantic Deep Agents an official Pydantic project?
- Pydantic Deep Agents is published by Vstorm, an applied agentic AI consultancy, not by the Pydantic team. The project is built on Pydantic AI and carries a Powered by Pydantic AI badge in its README, but the advisories and the repository belong to the vstorm-co organization. Pydantic AI and the Pydantic AI Harness are separate projects with their own advisories.
- Was my DeepResearch deployment reachable by an unauthenticated attacker?
- DeepResearch listens on loopback by default, so only deployments an operator bound to a reachable interface answered unauthenticated callers. Operators who exposed the app should treat session data, event logs and workspace files as readable by anyone who could reach the port, rotate credentials those sessions held, and set DEEPRESEARCH_PASSWORD after upgrading to 0.4.0.
- How does the CLI MCP trust flaw compare to the mcp-server-git config flaws?
- The CLI flaw let a project directory choose which MCP server processes started when an agent turn began, so opening an untrusted repository could run a server the repository picked. The mcp-server-git advisories instead ran programs named by a repository's own git config inside one MCP server. Both turn repository-controlled configuration into process execution, and 0.4.0 moves MCP settings out of the project.
Sources 6 links, all fetched
- 1github.comRelease 0.4.0
- 2github.comNo Auth Advisory
- 3github.comPDF Export SSRF
- 4github.comSession Delete Flaw
- 5github.comCLI MCP Trust
- 6github.comGitHub Advisory