CVE-2026-31020 Code injection in n/a

Critical 9.8 Published Updated

Unauthenticated attackers can achieve remote code execution via server-side template injection in the custom prompt feature of DocsGPT.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-31020?

CVE-2026-31020 is a critical code injection vulnerability in n/a, published on 4 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Which versions are affected by CVE-2026-31020?

How do I fix CVE-2026-31020?

No fix has been published for CVE-2026-31020 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-31020 being exploited?

There is no known exploitation of CVE-2026-31020 in the wild and no public exploit code.

Sources

Also known as GHSA-6675-j46f-vjjw.

Is CVE-2026-31020 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free