CVE-2026-137953 in Pydantic Deep
Summary
by MITRE • 11/27/2026
Pydantic Deep 0.2.18 before 0.4.0 contains a missing authentication vulnerability in the bundled DeepResearch FastAPI app that exposes HTTP routes and the /ws/chat WebSocket. Remote attackers reaching the server bound to all interfaces can enumerate sessions, read event logs and workspace files, drive the research agent, and delete sessions.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The Pydantic Deep project version 0.2.18 prior to 0.4.0 contains a critical security flaw stemming from missing authentication mechanisms within its bundled FastAPI application interface known as DeepResearch. This vulnerability arises because the underlying web server is configured to bind to all network interfaces, typically represented by the address zero point zero zero zero or similar wildcard configurations, thereby exposing internal management endpoints and user-facing services to external networks without requiring any form of credential verification. The absence of an access control layer allows unauthenticated remote actors to interact directly with the application's core functionalities, bypassing intended security boundaries that should restrict such interactions to authorized users only.
The technical nature of this flaw is classified as a broken access control issue where the server fails to enforce authentication checks on sensitive HTTP routes and WebSocket endpoints. Specifically, the /ws/chat WebSocket endpoint remains open for unauthenticated connections, allowing attackers to establish persistent communication channels with the research agent backend. This lack of session validation means that any entity capable of reaching the network interface hosting the service can initiate requests or messages without providing valid tokens, cookies, or other authentication credentials. The vulnerability aligns closely with CWE-306 which describes missing authentication for critical functionality, and it maps to MITRE ATT&CK technique T1078 Valid Accounts as attackers effectively operate under default unauthenticated privileges that should not exist in a production environment.
The operational impact of this vulnerability is severe due to the breadth of actions available to an attacker who gains access through these unprotected endpoints. Remote adversaries can enumerate active sessions, potentially identifying other users or processes running within the system. They are able to read sensitive event logs which may contain proprietary information, debugging data, or personal identifiable information depending on the application's logging configuration. Furthermore, attackers can access workspace files stored by the research agent, leading to a significant confidentiality breach of intellectual property and user-generated content. Beyond passive data exfiltration, the attacker gains active control capabilities including driving the research agent to perform unauthorized tasks such as web scraping or API calls from the server's perspective, which could lead to further network pivoting or resource abuse. Additionally, the ability to delete sessions allows for denial of service against legitimate users and can disrupt ongoing workflows by removing critical state information required for task continuity.
Mitigation strategies must focus on immediate remediation through software updates and configuration hardening. The primary recommendation is to upgrade Pydantic Deep to version 0.4.0 or later where this authentication gap has been addressed by the developers. In cases where upgrading is not immediately feasible, administrators should restrict network access to the FastAPI application interface using firewall rules that limit connectivity to trusted internal IP ranges only, preventing external reachability entirely. Implementing a reverse proxy with proper authentication middleware in front of the service can also provide an additional layer of security by enforcing credential verification before requests are forwarded to the backend application. It is crucial to audit all exposed endpoints and ensure that no sensitive interfaces remain bound to public-facing network adapters without robust access controls, adhering to the principle of least privilege and defense-in-depth architectural standards.