# 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.

- **Severity:** Medium: Real and reproducible, but needs unusual setup, user help or a narrow audience. Plan a fix.
- **Category:** Vulnerability
- **Published by:** Vstorm
- **Disclosed:** 2026-11-26
- **CVE:** CVE-2026-137953
- **Affects:** Pydantic Deep Agents, pydantic-deep (PyPI)
- **Research by:** [Shmulik Cohen](https://github.com/shmulc8) (Apiiro), [barnessomer](https://github.com/barnessomer)
- **Primary source:** https://github.com/vstorm-co/pydantic-deepagents/releases/tag/0.4.0
- **Page:** https://theinjection.dev/items/vstorm-pydantic-deep-advisory-wave/

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.

## What 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.

## How 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.

## Who 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.

## What 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.

## Quick facts

- **Affected:** pydantic-deep 0.2.18 to 0.4.0 for the three DeepResearch flaws; 0.3.23 to 0.4.0 for the CLI MCP trust flaw
- **Fixed in:** 0.4.0, released 26 November 2026, bundling DeepResearch 0.2.0. Release 0.4.2 is current and needs Python 3.11 or later
- **Advisories:** GHSA-26gv-pq4g-6m85 missing authentication, GHSA-f4p6-c493-769c PDF export SSRF, GHSA-rvg3-33vq-2fr6 session delete, GHSA-37q2-27w2-3w63 CLI MCP trust
- **CVE:** CVE-2026-137953 on the missing-authentication flaw only. The other three advisories list no known CVE
- **Severity:** Vstorm rates all four High, with CVSS 3.1 base scores of 7.5 on the authentication flaw and 8.6 on the PDF export. The GitHub Advisory Database carries VulnCheck's CVSS 4.0 score of 8.8 for CVE-2026-137953
- **Found by:** Shmulik Cohen of Apiiro reported the authentication and PDF export flaws, barnessomer reported the session delete flaw, and the CLI MCP advisory names no reporter
- **Disclosed:** 26 November 2026

## Questions

### 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

1. [Release 0.4.0](https://github.com/vstorm-co/pydantic-deepagents/releases/tag/0.4.0)
2. [No Auth Advisory](https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-26gv-pq4g-6m85)
3. [PDF Export SSRF](https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-f4p6-c493-769c)
4. [Session Delete Flaw](https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-rvg3-33vq-2fr6)
5. [CLI MCP Trust](https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-37q2-27w2-3w63)
6. [GitHub Advisory](https://github.com/advisories/GHSA-w4rc-p5x5-w926)
