Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-31020: DocsGPT server-side template injection in custom prompt feature

Identifier
CVE-2026-31020
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%

Summary

CVE-2026-31020 affects DocsGPT 0.15.0 and below. Its custom prompt feature renders user-supplied prompt content through Jinja templates without input sanitization or sandboxing. An unauthenticated attacker can inject malicious template expressions, causing server-side template injection that can lead to full remote code execution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.