CVE-2026-31020
nicheUnauthenticated Jinja SSTI to RCE in DocsGPT 0.15.0 and earlier
DocsGPT 0.15.0 and below contains a server-side template injection (CWE-94) in its custom prompt feature, which renders user-supplied prompt content with Jinja templates without input sanitization or sandboxing. An unauthenticated attacker can submit prompt data containing malicious Jinja template expressions, which the server evaluates during chatbot interactions. Successful injection is stated to allow full remote code execution on the server running DocsGPT. Any deployment of DocsGPT 0.15.0 or earlier that exposes the chat/prompt interface to untrusted users is affected. Exploitation has not been reported: there is no known public proof of concept, the flaw is not in CISA's KEV catalog, and EPSS currently estimates a 0.6% chance of exploitation within 30 days.
What to do: Upgrade DocsGPT to a release newer than 0.15.0 as soon as a patched version is published, and check the project's advisories/releases for the fixed version. Until then, limit network exposure of DocsGPT instances (restrict to trusted networks or require authentication at a reverse proxy), and consider disabling or tightly restricting the custom prompt feature. Do not render untrusted user prompt content through unsandboxed Jinja templates in any customizations or integrations.
| Arc53 DocsGPT | All versions through and including 0.15.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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).
- Weakness
- CWE-94
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
In the news0 stories
No ingested article mentions this CVE yet.