Intel

AIKIDO-2026-10478

ai-prompter is vulnerable to Server-Side Template Injection (SSTI)

Server-Side Template Injection (SSTI) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 15, 2026

92

Critical Risk

This Affects:

PYTHONai-prompter
0.1.0 - 0.3.2
Fixed in 0.4.0
Are you affected? Scan for Free

TL;DR

Prompt rendering uses Jinja2 with a standard Environment, so template expressions are evaluated with full Python reachability when caller-controlled template text or fragments are passed into Prompter. A crafted template can invoke dangerous attribute chains and achieve arbitrary code execution in the host process. The change replaces default and dynamically constructed environments with jinja2.sandbox.SandboxedEnvironment, blocking typical sandbox-escape gadget paths while still rendering normal prompts.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

ai-prompter is vulnerable to Server-Side Template Injection (SSTI) in versions 0.1.0 - 0.3.2.

How to fix this

Upgrade the ai-prompter library to the patch version.