Intel

AIKIDO-2026-549710

metricflow is vulnerable to Server-Side Template Injection (SSTI)

Server-Side Template Injection (SSTI)GHSA-g857-633q-gjj8 Published Yesterday

88

High Risk

This Affects:

PYTHONmetricflow
0.210.0 - 0.212.0
Fixed in 0.213.0
Are you affected? Scan for Free

TL;DR

MetricFlow passes caller or model controlled where_sql_template values to an unsandboxed Jinja environment in both the filter converter and the where filter spec factory. A crafted template runs arbitrary Jinja expressions and reaches Python object internals during query construction, leading to arbitrary code execution via server-side template injection. The fix runs both rendering paths through Jinja's SandboxedEnvironment and rejects templates that raise a SecurityError.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and where_sql_template values can come from untrusted or model-generated input.

Background info

metricflow is vulnerable to Server-Side Template Injection (SSTI) in versions 0.210.0 - 0.212.0.

How to fix this

Upgrade the metricflow library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform