CVE Catalog

CVE-2026-31020

Unknown
Published: Translated: NVD NIST

Summary

In DocsGPT 0.15.0 and below, the custom prompt feature 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).

Risk Assessment

An unauthenticated attacker could gain full control of the server, potentially leading to data theft, application modification, or use of the server for further attacks.

Recommendation

Upgrade DocsGPT to a version newer than 0.15.0 or apply appropriate mitigations such as input sanitization and sandboxing for Jinja templates.

Other vulnerabilities in DocsGPT

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS