{"id":"CVE-2026-123020","kind":"vulnerability","aliases":["CVE-2026-123020"],"related":[],"title":"DB-GPT: Jinja2 template injection in skill prompt lets remote attackers run code","description":"A security vulnerability has been detected in eosphoros-ai DB-GPT up to 0.8.1. The affected element is the function FileBasedSkill.get_prompt of the file packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py of the component Jinja2 Template Handler. The manipulation leads to improper neutralization of special elements used in a template engine. The attack may be initiated remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 0.8.2 is sufficient to fix this issue. The identifier of the patch is a9e7a3c026d114fcfb4ffe3eaf78851a636ded16. It is suggested to upgrade the affected component.","summary":"DB-GPT, an open-source AI agent and database framework, renders skill prompts through a Jinja2 template without neutralizing special template syntax in FileBasedSkill.get_prompt. A remote attacker who can supply input to that path may be able to inject template expressions, and the exploit has been disclosed publicly.","severity":"high","cvss":7.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-agents","ai-tooling","db-gpt","jinja2","python"],"not_affected_if":["version-0.8.2-or-later"],"how_to_check":"- Check the installed DB-GPT version; versions up to `0.8.1` are listed as affected.\n- Look for `packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py` and whether `FileBasedSkill.get_prompt` takes input from users or external files.","fix":"- DB-GPT: upgrade to `0.8.2`, per the NVD description.","status":"open","published_at":"2026-11-05T13:17:07+00:00","first_seen_at":"2026-11-05T13:39:09+00:00","triaged_at":"2026-11-05T13:40:06+00:00","updated_at":"2026-11-05T13:40:06+00:00","category":"ai-tooling","confidence":0.6,"triage":{"at":"2026-11-05T13:40:06Z","model":"claude-haiku-5-5","output":{"fix":"- DB-GPT: upgrade to `0.8.2`, per the NVD description.","reach":"internet","title":"DB-GPT: Jinja2 template injection in skill prompt lets remote attackers run code","impact":"high","summary":"DB-GPT, an open-source AI agent and database framework, renders skill prompts through a Jinja2 template without neutralizing special template syntax in FileBasedSkill.get_prompt. A remote attacker who can supply input to that path may be able to inject template expressions, and the exploit has been disclosed publicly.","audience":"businesses","category":"ai-tooling","nicknames":[],"who_cares":["db-gpt","ai-agents","python","jinja2"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"attacker may execute code on the DB-GPT server","analyst_note":"Confirm which input reaches FileBasedSkill.get_prompt and whether auth gates it; the NVD page at https://nvd.nist.gov/vuln/detail/CVE-2026-123020 and the linked release notes may say.","how_to_check":"- Check the installed DB-GPT version; versions up to `0.8.1` are listed as affected.\n- Look for `packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py` and whether `FileBasedSkill.get_prompt` takes input from users or external files.\n- unknown for any further check the sources do not describe.","plain_action":"","needs_analyst":true,"not_affected_if":["version-0.8.2-or-later"],"who_is_affected":"Teams running DB-GPT up to 0.8.1 where the agent skill prompt path accepts input an outside party can influence. The sources name the file and function but do not state which deployment settings make it reachable, so unknown whether a default install is exposed. Teams on 0.8.2 or later, or not running DB-GPT, can skip it.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000791,"input_tokens":4390,"output_tokens":704,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-123020':17A,20A '-2026':16A,19A '0.8.1':98C '0.8.2':150C 'a9e7a3c026d114fcfb4ffe3eaf78851a636ded16':163C 'abl':71B 'affect':100C,170C 'agent':23B,40B 'ai':22B,25B,39B,92C 'ai-ag':21B 'ai-tool':24B 'attack':12A,61B,132C 'code':14A 'compon':113C,171C 'cve':15A,18A 'databas':42B 'db':2A,28B,33B,94C 'db-gpt':1A,27B,32B,93C 'detect':88C 'disclos':81B,141C 'element':101C,125C 'engin':130C 'eosphoro':91C 'eosphoros-ai':90C 'exploit':78B,138C 'express':75B 'file':109C 'filebasedskill.get':57B,105C 'fix':154C 'framework':43B 'function':104C 'gpt':3A,29B,34B,95C 'handler':116C 'identifi':158C 'improp':121C 'initi':135C 'inject':6A,73B 'input':65B 'issu':156C 'jinja2':4A,30B,49B,114C 'lead':119C 'let':10A 'manipul':118C 'may':69B,133C,144C 'neutral':52B,122C 'open':37B 'open-sourc':36B 'packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py':110C 'patch':161C 'path':68B 'prompt':9A,46B,58B,106C 'public':82B,142C 'python':31B 'remot':11A,60B,136C 'render':44B 'run':13A 'secur':84C 'skill':8A,45B 'sourc':38B 'special':53B,124C 'suffici':152C 'suggest':166C 'suppli':64B 'syntax':55B 'templat':5A,50B,54B,74B,115C,129C 'tool':26B 'upgrad':147C,168C 'use':126C,146C 'version':149C 'vulner':85C 'without':51B","nicknames":[],"mitigations":[],"who_affected":"Teams running DB-GPT up to 0.8.1 where the agent skill prompt path accepts input an outside party can influence. The sources name the file and function but do not state which deployment settings make it reachable, so unknown whether a default install is exposed. Teams on 0.8.2 or later, or not running DB-GPT, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["aiagents","aitooling","dbgpt","high","jinja2","python"],"campaign_type":null,"first_public_at":"2026-11-05T13:17:07+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@vuldb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-123020","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123020","severity":null,"published_at":"2026-11-05T13:17:07+00:00","modified_at":"2026-11-05T13:17:07+00:00","first_seen_at":"2026-11-05T13:39:09+00:00","fetched_at":"2026-11-05T13:39:09+00:00","note":null}],"documents":[{"id":76424,"url":"https://github.com/eosphoros-ai/DB-GPT/commit/a9e7a3c026d114fcfb4ffe3eaf78851a636ded16","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":76425,"url":"https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.8.2","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"}],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}