Patient-facing RAG chatbot leaks system prompts, config and recent conversations via browser
The examined medical RAG chatbot exposes sensitive system prompts, configuration, and the 1,000 most recent patient conversations through client-side traffic.
AI/ML arXiv 1 May 2026 Measurement Real-world evidence
Published as “When RAG Chatbots Expose Their Backend: An Anonymized Case Study of Privacy and Security Risks in Patient-Facing Medical AI”
Why it matters
Deployers of patient-facing medical RAG chatbots must enforce server-side protection of configuration, knowledge-base content, and conversation logs, because anyone with a web browser can otherwise exfiltrate protected health information.
Summary
The study shows that a publicly accessible patient-facing medical RAG chatbot leaked its system prompt, full RAG pipeline configuration, the entire knowledge base, and up to 1,000 recent patient conversations through ordinary browser developer tools, without any authentication or specialized skills. The authors used Claude Opus 4.6 to generate prompt-injection probes and then manually verified the leaks via Chrome DevTools. Evidence comes from a single real-world deployment examined non-destructively, and the findings are directly observable in the network traffic and unauthenticated API responses.
What they found 2
- Sensitive system and RAG configuration information was exposed through browser-accessible client-server communication.
“sensitive system and RAG configuration information appeared to be exposed through browser-accessible client-server communication rather than being restricted to the server side.”
- Stored patient conversations were accessible without authentication, contradicting the system's privacy assurances.
“One of the most important findings concerned stored conversations. A public interface returned the most recent 1,000 patient-chatbot conversation records, comprising the user-submitted question, the model’s response, the timestamp and a free-text “keyword” classification.”
Caveats 3
- Direct conversational requests for the system prompt were generally deflected by the RAG chatbot (Table 1).
- The findings describe one anonymized deployment and should not be generalized to all RAG systems.
- technical details that could enable replication or misuse of the vulnerability were intentionally omitted or generalized.
What’s new here 4
- Demonstrates that standard browser inspection can retrieve sensitive RAG configuration and patient data from a live medical chatbot.
- Shows that a commercial LLM (Claude Opus 4.6) can assist in discovering such vulnerabilities without requiring authentication.
- Reveals a mismatch between the system's public privacy claims and its actual data retention behavior.
- Provides a concrete, anonymized case study of security and privacy failures in a patient-facing AI system.