Description
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).
Published: 2026-09-04
Score: 9.8 Critical
EPSS: 1.0% Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

In the affected version of DocsGPT, a custom prompt feature renders user supplied content through the Jinja templating engine without sanitizing or sandboxing. This permits an unauthenticated user to inject arbitrary Jinja expression, which the server evaluates. The injection can be used to execute arbitrary code on the host, providing full remote code execution. The flaw stems from a critical input validation weakness that allows malicious template processing. The analysis infers that no additional authentication checks or security boundaries are applied, as the description does not mention any such mechanisms.

Affected Systems

The issue exists in DocsGPT version 0.15.0 and earlier. Any installation of these releases that continues to expose the custom prompt setting is vulnerable. The analysis infers that the vulnerability affects any instance that has the custom prompt feature enabled, regardless of external configuration, because the advisory does not limit exposure.

Risk and Exploitability

The vulnerability can be exploited without authentication or elevated privileges, making it trivial for an attacker to gain full control of the affected machine. The CVSS score of 9.8 indicates a very high severity. EPSS data is not available and the vulnerability is not listed in CISA's KEV catalog. The lack of EPSS data and KEV listing indicates no publicly reported exploitation, but the high CVSS suggests that if an attacker can reach the vulnerable endpoint, exploitation is straightforward.

Generated by OpenCVE AI on September 4, 2026 at 22:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DocsGPT to a version newer than 0.15.0 where the custom prompt handling has been patched.
  • If an upgrade is not immediately possible, temporarily disable the custom prompt feature or remove it from the configuration to block exploitation.
  • In the interim, enforce a Jinja sandbox or explicitly sanitize all user provided prompt text to prevent template rendering.

Generated by OpenCVE AI on September 4, 2026 at 22:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 07 Sep 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Arc53
Arc53 docsgpt
Vendors & Products Arc53
Arc53 docsgpt

Fri, 04 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 04 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
Description 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).
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-04T17:39:17.358Z

Reserved: 2026-03-09T00:00:00.000Z

Link: CVE-2026-31020

cve-icon Vulnrichment

Updated: 2026-09-04T17:38:48.790Z

cve-icon NVD

Status : Deferred

Published: 2026-09-04T17:16:56.910

Modified: 2026-09-08T19:42:20.313

Link: CVE-2026-31020

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T08:28:14Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')