Skip to main content

DocsGPT EUVDEUVD-2026-71608

| CVE-2026-31020 CRITICAL
Code Injection (CWE-94)
2026-09-04 mitre GHSA-6675-j46f-vjjw
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed DocsGPT prompt endpoint
  2. Delivery
    Submit malicious Jinja template expression
  3. Exploit
    Trigger unsandboxed template rendering (SSTI)
  4. Execution
    Escape to Python object model
  5. Persist
    Execute OS commands as service account
  6. Impact
    Full server compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target DocsGPT instance (version <=0.15.0) expose the custom-prompt feature to the attacker and that user-supplied prompt content be rendered through the unsandboxed Jinja engine - this is the default behavior of the feature, and the CVSS vector (PR:N/UI:N) indicates no authentication or user interaction is needed. The main limiting factors are reachability of the DocsGPT backend/prompt endpoint (network exposure) and whether the deployment leaves the custom-prompt feature enabled and accessible to untrusted users; instances gated behind authentication or with the feature disabled are not exploitable by anonymous attackers.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) is internally consistent with the description of an unauthenticated, network-reachable SSTI yielding full RCE, and SSVC rates technical impact as 'total' and automatable as 'yes' - both signals that align with high urgency. The tempering factor is that SSVC exploitation is 'none' and the CVE is not in CISA KEV, so there is no confirmation of active exploitation in the wild; a public writeup/PoC repository does exist, which materially lowers the bar for opportunistic attackers. No EPSS score was supplied. Any organization exposing a DocsGPT instance to untrusted users should treat this as a priority patch given trivial exploitability against default configurations, even though real-world deployment scale for this OSS chatbot is more limited than mainstream enterprise software.

Exploit ScenarioDerived

An attacker locates an internet-exposed DocsGPT instance, opens the chatbot's custom-prompt input, and submits a prompt containing a Jinja expression such as an object-traversal payload that reaches Python's os module. When DocsGPT renders the prompt, the payload executes and the attacker runs arbitrary commands on the server. Given the network, unauthenticated, low-complexity vector and an existing public PoC repository, this requires little skill to reproduce.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 04, 2026

Remote code execution in DocsGPT 0.15.0 and earlier arises from its custom-prompt feature, which passes user-supplied prompt content into Jinja template rendering with no sanitization or sandboxing. An unauthenticated attacker can submit crafted template expressions to achieve server-side template injection (SSTI) that escalates to full RCE on the host running the chatbot backend. VulDB has published an entry and a public writeup/PoC repository exists, though the flaw is not listed in CISA KEV and SSVC records exploitation status as 'none'.

RemediationAI

No vendor-released fixed version is identified in the supplied data, so upgrade first to any release later than 0.15.0 once Arc53 publishes one and monitor the DocsGPT GitHub repository and https://vuldb.com/vuln/399064 for a patch reference. As compensating controls until a patched build is confirmed: disable or restrict the custom-prompt feature so end users cannot define prompt content (removes the injection surface but loses prompt customization); place the DocsGPT backend behind authentication and network ACLs so the prompt endpoint is not reachable by anonymous users (reduces exposure but does not fix the underlying template evaluation); and run the service in a hardened, minimal-privilege container with egress filtering to limit the blast radius of any RCE (contains impact but does not prevent code execution). Verify any fix independently, as the patched version is not confirmed in the available data.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

DocsGPT is an open-source retrieval-augmented-generation documentation assistant (project home arc53.com). The vulnerable component is the custom-prompt capability: prompt text is treated as a Jinja2 template and evaluated server-side. Jinja2, when rendered on attacker-influenced input without a sandboxed environment, exposes Python object introspection primitives (e.g. accessing __class__/__mro__/__subclasses__ or config/global objects) that let an attacker reach OS command execution. This maps to CWE-94 (Improper Control of Generation of Code / 'Code Injection'); SSTI is a classic instance where the injection surface is a template engine rather than a language interpreter directly.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Description states unauthenticated network-reachable SSTI yielding full RCE, so AV:N/AC:L/PR:N/UI:N with C:H/I:H/A:H; scope unchanged as impact stays on the vulnerable host.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 04, 2026 - 18:22 NVD
9.8 (CRITICAL)
CVE Published
Sep 04, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Sep 04, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

In DocsGPT 0.15.0 and below, the application provides a custom prompt feature that allows users to define prompt content used during chatbot interactions. This functionality renders user-supplied prompt data using Jinja templates without input sanitization or sandboxing. An unauthenticated attacker can inject malicious template expressions, leading to a server-side template injection (SSTI) vulnerability that can be exploited to achieve full remote code execution (RCE).

Executive ViewAI

Why It Matters

DocsGPT versions 0.15.0 and earlier contain an unauthenticated remote code execution vulnerability through server-side template injection in the custom-prompt feature, allowing attackers to execute arbitrary code on hosting servers without authentication. Organizations using this open-source documentation chatbot face complete system compromise with no legitimate user interaction required.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Network segmentation-isolate DocsGPT instances from untrusted networks; (2) WAF reverse proxy-block requests containing Jinja syntax patterns; (3) Process monitoring-alert on unexpected child process spawning from chatbot service; (4) Credential rotation-reset API keys and secrets accessible to the application; (5) Service replacement-prioritize migration to alternative documentation tools pending patch release.

Threat Intelligence Overview

EPSS Score
0.6%
Top 55% exploitable
Prevalence
Low
open-source RAG chatbot; modest production footprint, mostly self-hosted
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy