ZeroHour

CVE-2026-31020

niche

Unauthenticated Jinja SSTI to RCE in DocsGPT 0.15.0 and earlier

CVSS 3.1
9.8 critical
EPSS
<1%p46
Published
()
Modified
AI analysis

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.

Affected
Arc53 DocsGPTAll versions through and including 0.15.0
Estimated exposure
nichelikely low thousands of self-hosted deployments (project has roughly 15k GitHub stars; no install-count telemetry is available) — DocsGPT is a popular open-source project (on the order of 15k GitHub stars) typically self-hosted by teams via containers, suggesting adoption in the low thousands of deployments rather than hundreds of thousands.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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

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 news

No ingested article mentions this CVE yet.