CVE-2026-2969: Server-Side Template Injection in datapizza-ai Package via Jinja2 Template Handler

datapizza-ai-core Updated 25 Feb 2026

Summary

23/02/2026
No i
Low
4.7

CVE-2026-2969: datapizza-ai: Server-Side Template Injection in ChatPromptTemplate via Jinja2 Template Handler. Affects datapizza-ai-core versions < 0.0.2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

datapizza-ai is a Python package designed for AI-driven applications, providing tools for creating and managing chat prompts. It utilizes the Jinja2 template engine for rendering dynamic content. However, version 0.0.2 of the package contains a vulnerability that allows for server-side template injection, which can lead to unauthorized access and manipulation of server-side data.

Vulnerability Detail

A flaw in the ChatPromptTemplate function of the datapizza-ai package allows for improper neutralization of special elements used in the Jinja2 template engine. This vulnerability can be exploited remotely, enabling attackers to inject malicious templates that may compromise server integrity and expose sensitive data. The issue arises from the way user input is handled, leading to potential code execution or data leakage.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary measure, you can sanitize user inputs to prevent the injection of malicious templates. This can be done by implementing strict validation rules for the inputs passed to the ChatPromptTemplate function, ensuring that no special characters or template syntax are allowed.

Conclusion

The vulnerability identified as CVE-2026-2969 in the datapizza-ai package poses a significant risk due to server-side template injection. Users are advised to update their packages promptly and implement input validation as a temporary workaround. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for datapizza-ai-core →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 4.7, indicating a moderate level of severity.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability may lead to unauthorized access, data leakage, or even remote code execution on the server.

Yes, updating to a version higher than 0.0.2 of the datapizza-ai-core package will patch the vulnerability.

Server-side template injection is a type of vulnerability that allows an attacker to inject malicious templates into the server-side rendering process, potentially leading to code execution or data exposure.

Related vulnerabilities

Recent vulnerabilities recorded for datapizza-ai-core.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback