CVE-2026-31020CWE-94code-injection

CVE-2026-31020

Critical · published September 4, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
63.6
In the wild
Unconfirmed
What it is

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).

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01038 · 63.6th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-09-04T21:16Z
References (2)
EPSS history
Timeline
  • 06 SEP 03:31Z
    EPSS moved — → 1%
    epss
  • 04 SEP 00:00Z
    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
    cvelistv5