Web Application
How a Pydantic Object Defeated a Jinja2 Sandbox: SSTI to RCE
A Jinja2 SandboxedEnvironment blocked every classic template injection payload and its logic audited clean, yet one request still produced command execution. The cause was an application object in the template context: a Pydantic model whose public parse_raw method reaches pickle.loads. When you find a sandboxed SSTI, ask what the developer put in the room with you instead of which payload beats the sandbox.


