← All advisories

CVE-2026-137681mediumBroken access control2026-11-27

CVE-2026-137681: DB-GPT's React agent queried any datasource named in database_name, letting one user's chat read another user's private database (fixed 0.8.3)

DB-GPT (eosphoros-ai, about 20k GitHub stars) is an open-source platform for LLM data agents. Its Agentic Data API React agent (_react_agent_stream_impl in agentic_data_api.py) took the datasource from ext_info.database_name without checking who owned it. Another user, or a request with no user-id header, could have the agent list tables and run SQL on someone else's private datasource and return the rows in its answer. The ownership check from commit 61a0460e ships in 0.8.3.

01.

What it is

CWE-285: the datasource list hides other users' datasources, but the React agent's connector lookup did not apply the same owner check. The public reproduction (issue #3335) shows user bob reading rows from alice's private SQLite datasource through POST /api/v1/chat/react-agent on the unmodified v0.8.2 image.

Affected: DB-GPT up to 0.8.2. Fixed in 0.8.3 (GitHub release 17 November 2026) via commit 61a0460e (part of PR #3278), which adds an owner/shared check before acquiring the connector.

The reporter's issue, still open, notes the guard treats datasources with no owner as shared, including the default internal dbgpt metadata database (chat histories, agent messages, stored datasource credentials). Check whether that row is reachable in your deployment even after upgrading.

As of 29 November 2026 the newest dbgpt package on PyPI is 0.8.2, so pip users can't get the fix from PyPI yet. NVD published the CVE (VulDB) on 27 November 2026.

02.

How to check

  1. Check your DB-GPT version (image tag or pip show dbgpt): 0.8.2 and earlier are affected.
  2. In a multi-user deployment, review react-agent requests whose ext_info.database_name points to a datasource the caller doesn't own, or to dbgpt.
03.

How to fix

  1. Upgrade to DB-GPT 0.8.3 or later from the GitHub release / source (PyPI still has 0.8.2).
  2. Put DB-GPT behind real authentication; don't rely on the user-id header, and don't register sensitive databases in a shared instance until you've confirmed ownership checks.
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.