The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-2969

CVE-2026-2969: Datapizza AI RCE Vulnerability

CVE-2026-2969 is a remote code execution flaw in Datapizza AI 0.0.2 affecting the Jinja2 template handler. Attackers can exploit improper input neutralization remotely. This article covers technical details, impact, and mitigation.

Published: February 27, 2026

CVE-2026-2969 Overview

A Server-Side Template Injection (SSTI) vulnerability has been discovered in datapizza-labs datapizza-ai version 0.0.2. The flaw exists in the ChatPromptTemplate function within the file datapizza-ai-core/datapizza/modules/prompt/prompt.py, specifically in the Jinja2 Template Handler component. An attacker can manipulate the Prompt argument to achieve improper neutralization of special elements used in the template engine, potentially leading to remote code execution or information disclosure.

Critical Impact

Remote exploitation is possible through improper neutralization of special template elements. The exploit has been publicly disclosed and the vendor has not responded to disclosure attempts.

Affected Products

  • datapizza datapizza_ai version 0.0.2
  • Datapizza AI applications using the vulnerable Jinja2 Template Handler component
  • Systems utilizing the ChatPromptTemplate function with user-controlled input

Discovery Timeline

  • 2026-02-23 - CVE CVE-2026-2969 published to NVD
  • 2026-02-24 - Last updated in NVD database

Technical Details for CVE-2026-2969

Vulnerability Analysis

This vulnerability falls under CWE-791 (Incomplete Filtering of Special Elements), where the application fails to properly sanitize user-controlled input before processing it through the Jinja2 template engine. The ChatPromptTemplate function in the prompt handling module accepts user-supplied prompt data without adequate validation, allowing attackers to inject malicious template directives.

Jinja2 is a powerful templating engine for Python that supports arbitrary code execution through its expression evaluation capabilities. When user input is directly rendered through Jinja2 without proper sanitization, attackers can inject template syntax that gets executed server-side. This can lead to unauthorized access to system resources, execution of arbitrary Python code, and potential full system compromise.

The vulnerability can be exploited remotely over the network by an authenticated attacker with high privileges. Successful exploitation could result in limited impacts to confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of this vulnerability is the improper handling of user-supplied input in the ChatPromptTemplate function. The Prompt argument is processed by the Jinja2 template engine without adequate filtering of special template elements. This allows specially crafted template syntax to bypass input validation and execute arbitrary expressions within the template context.

The vulnerable component does not implement proper input sanitization or template sandboxing, which would normally prevent dangerous template operations from being executed. The lack of a secure Jinja2 environment configuration (such as using SandboxedEnvironment) exacerbates the issue.

Attack Vector

The attack is conducted remotely over the network. An attacker with authenticated access and elevated privileges can craft malicious prompt input containing Jinja2 template syntax. When this input is processed by the ChatPromptTemplate function, the template engine evaluates the injected expressions, potentially allowing the attacker to access sensitive data, read files, or execute system commands.

The attack flow involves submitting specially crafted Jinja2 expressions as prompt input. These expressions bypass the incomplete filtering mechanism and are evaluated by the template engine. Common SSTI payloads target Python's object introspection capabilities to access dangerous classes and methods.

For technical details on the exploitation mechanism, refer to the GitHub Disclosure Document and the GitHub PoC Section.

Detection Methods for CVE-2026-2969

Indicators of Compromise

  • Unusual Jinja2 template syntax patterns in application logs, particularly in prompt input fields
  • Presence of Python introspection patterns such as __class__, __mro__, __subclasses__, or __globals__ in request data
  • Unexpected file access or command execution originating from the datapizza-ai application process
  • Error messages revealing template engine internals or stack traces related to Jinja2 rendering

Detection Strategies

  • Implement input validation rules to detect and block common SSTI payloads containing double curly braces {{ }} or {% %} syntax
  • Monitor application logs for template rendering errors or exceptions that may indicate exploitation attempts
  • Deploy web application firewall (WAF) rules specifically designed to detect template injection patterns
  • Use runtime application self-protection (RASP) solutions to detect anomalous template engine behavior

Monitoring Recommendations

  • Enable verbose logging for the prompt handling module to capture all input processed by ChatPromptTemplate
  • Set up alerts for process execution or file access events originating from the datapizza-ai application
  • Monitor network traffic for exfiltration attempts following potential SSTI exploitation
  • Implement anomaly detection for unusual patterns in prompt submissions

How to Mitigate CVE-2026-2969

Immediate Actions Required

  • If possible, restrict access to the affected ChatPromptTemplate function to trusted users only
  • Implement strict input validation to filter out template syntax from prompt inputs
  • Consider disabling or replacing the vulnerable Jinja2 Template Handler component until a patch is available
  • Apply network-level access controls to limit exposure of the affected application

Patch Information

At the time of publication, no official patch has been released by the vendor. According to the disclosure, the vendor was contacted early about this vulnerability but did not respond. Organizations using datapizza-ai version 0.0.2 should implement the workarounds described below and monitor for vendor updates.

For additional information, refer to the VulDB entry #347336.

Workarounds

  • Migrate to using Jinja2's SandboxedEnvironment instead of the standard environment to restrict dangerous operations
  • Implement a whitelist-based input validation approach that only allows known-safe characters in prompt inputs
  • Deploy the application behind a reverse proxy with WAF rules configured to block SSTI patterns
  • Consider replacing the Jinja2 template handler with a safer alternative that does not support arbitrary code execution
bash
# Example: Restricting access to the vulnerable endpoint via nginx
location /api/prompt {
    # Limit access to trusted IP addresses only
    allow 10.0.0.0/8;
    deny all;
    
    # Additional WAF-like pattern blocking
    if ($request_body ~* "(\{\{|\{\%).*(__class__|__mro__|__subclasses__)") {
        return 403;
    }
    
    proxy_pass http://datapizza-backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDatapizza

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-791
  • Technical References
  • GitHub Disclosure Document

  • GitHub PoC Section

  • VulDB #347336 (CTIID)

  • VulDB #347336

  • VulDB Submission #755357
  • Related CVEs
  • CVE-2026-2970: Datapizza-ai Deserialization Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English