CVE-2026-27961 Agenta's Server-Side Template Injection (SSTI) via custom evaluator Jinja2 templates allows RCE

High 8.8 Published Updated

Attacker can achieve remote code execution via Server-Side Template Injection in Agenta's evaluator templates, affecting self-hosted deployments.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-27961?

CVE-2026-27961 is a high-severity code injection vulnerability in Agenta-AI agenta, published on 26 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Agenta is an open-source LLMOps platform. A Server-Side Template Injection (SSTI) vulnerability exists in versions prior to 0.86.8 in Agenta's API server evaluator template rendering. Although the vulnerable code lives in the SDK package, it is executed server-side within the API process when running evaluators. This does not affect standalone SDK usage — it only impacts self-hosted or managed Agenta platform deployments. Version 0.86.8 contains a fix for the issue.

Weakness: CWE-1336

Which versions are affected by CVE-2026-27961?

1 open source package ship an affected version, including agenta. It affects 1 product.

PackageAffectedFixed in
agenta PyPIAll versions0.86.8

Products include Agentatech Agenta.

How do I fix CVE-2026-27961?

Upgrade agenta to 0.86.8 or later.

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

Is CVE-2026-27961 being exploited?

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

Sources

Also known as GHSA-cfr2-mp74-3763, PYSEC-2026-7.

Is CVE-2026-27961 in your software?

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

Check your SBOMs for free