CVE-2026-31020: DocsGPT vulnerability

Published Sep 4, 2026
·
Updated

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

Affected Software

1 affected component
DocsGPT<=0.15.0

Event History

Sep 4, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:16 PM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

DocsGPT deployments running version 0.15.0 or below are exposed if the custom prompt feature is available to unauthenticated users. No authentication is required for exploitation.

2

What does an attacker need to exploit it?

An attacker needs the ability to submit malicious content through the custom prompt feature. The injected content is rendered as a Jinja template without sanitization or sandboxing.

3

What is the likely impact of successful exploitation?

Successful template injection can lead to server-side template injection and full remote code execution on the affected server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203