News · better-chatbot (open source) · 2 min read
Event date: · Published:
better-chatbot patches missing-authorization flaw exploited by prompt injection
GitHub published an advisory on November 22, 2026 for a missing-authorization flaw in better-chatbot that let prompt injection trigger unauthorized data exfiltration, fixed in version 2.0.0.
GitHub Security Advisories published an advisory on November 22, 2026, disclosing a missing-authorization vulnerability in better-chatbot, a self-hosted open-source AI chatbot and agent platform with MCP-style tool integration. The flaw let a prompt injected into a document or web page trigger an unauthorized action that exfiltrated conversation data, as detailed in GitHub's advisory for better-chatbot.
What changed
- Tracked as CVE-2026-134755 (GHSA-3wx4-w2p3-fv2m), rated CVSS v3.1 5.9 (Medium) and CVSS v4.0 6.0
- Affects the npm package better-chatbot in versions before 2.0.0; fixed in version 2.0.0
- Classified as CWE-862, Missing Authorization
- The flaw sits in better-chatbot's
Manual tool mode, which is meant to require user confirmation before any tool runs - Built-in tools' execute handlers in
src/app/api/chat/route.tsstayed active and bypassed that confirmation gate - An attacker's prompt injection, planted in a document or web page the agent reads, could trigger the built-in HTTP request tool to send conversation data to an attacker-controlled server
What it means for AI builders
The advisory is a reminder that a manual confirmation setting does not automatically gate every tool call, even built-in ones. Developers who self-host AI chat and agent platforms with tool-calling often assume that manual mode fully blocks execution until a human approves it. This case shows that assumption can be false, giving prompt injection a direct path to data exfiltration. Anyone building or operating an MCP-style tool-using agent should check whether their own confirmation gates actually cover every built-in tool, not just the ones added later.
Fix and availability
The fix landed through pull request #402 and shipped in better-chatbot version 2.0.0. Self-hosted deployments running versions before 2.0.0 remain exposed to the issue until they upgrade. The advisory was published on the GitHub Advisory Database on November 22, 2026.
Sources
- better-chatbot Missing Authorization vulnerability allows prompt-injection-driven data exfiltration - GHSA-3wx4-w2p3-fv2m (GitHub Security Advisories, November 22, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.