Live threats

All CVEs

CVE-2026-31020

Server-Side Template Injection in DocsGPT

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Sep 4, 2026
Updated
Sep 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

DocsGPT 0.15.0 and earlier versions contain a server-side template injection (SSTI) vulnerability in the custom prompt feature. An unauthenticated attacker can inject malicious expressions into Jinja templates to achieve remote code execution with full access to the server.

Show the original NVD text

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

Source text, unmodified. NVD.

What to do

Patch available

Update DocsGPT to a version after 0.15.0 that includes input validation and sanitization in the custom prompt feature.

Vendor advisory · arc53.com ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official sources

References

Links published by the sources. Open them with care.