CVE-2026-2969: datapizza-ai Server-Side Template Injection Vulnerability

LOW
Advisory Identifier: GHSA-q5xx-fxv3-xxqf
CVSS 4.7
CWE-791 CWE-1336
Published
Advisory Summary

CVE-2026-2969 is a LOW (CVSS 4.7) server-side template injection vulnerability (CWE-791: Incomplete Filtering of Special Elements) affecting datapizza-ai libraries in the PyPI ecosystem. The issue involves server-side template injection in chatprompttemplate via jinja2 template handler. Remediation is available in the latest vendor maintenance releases.

CVE-2026-2969 at a Glance

CVE Identifier CVE-2026-2969
GHSA Identifier GHSA-q5xx-fxv3-xxqf
Severity LOW
CVSS v3.1 Base Score 4.7
CWE Classification CWE-791: Incomplete Filtering of Special Elements
Affected Product datapizza-ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-2969

To remediate this vulnerability, upgrade all affected datapizza-ai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

datapizza-ai-core fixed: Latest secure release
pip install datapizza-ai-core>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show datapizza-ai-core

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-2969, inspect your installed packages using pip:

pip show datapizza-ai-core

Analyze the terminal output to locate any version of datapizza-ai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show datapizza-ai-core command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-791: Incomplete Filtering of Special Elements, where the product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component. In datapizza-ai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw has been found in datapizza-labs datapizza-ai 0.0.2. Affected is the function ChatPromptTemplate of the file datapizza-ai-core/datapizza/modules/prompt/prompt.py of the component Jinja2 Template Handler. This manipulation of the argument Prompt causes improper neutralization of special elements used in a template engine. Remote exploitation of the attack is possible. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2026-2969 Affected datapizza-ai Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
datapizza-ai-core
PyPI
≤ 0.0.2

References

Frequently Asked Questions

What is CVE-2026-2969?
CVE-2026-2969 is a security vulnerability in datapizza-ai involving Server-Side Template Injection in ChatPromptTemplate via Jinja2 Template Handler under CWE-791: Incomplete Filtering of Special Elements.
Which datapizza-ai versions are affected?
Affected versions include releases prior to current release patches across affected packages: datapizza-ai-core.
What version fixes CVE-2026-2969?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is datapizza-ai-core affected?
Yes, datapizza-ai-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-2969?
CVE-2026-2969 has a CVSS v3.1 base score of 4.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-2969?
CVE-2026-2969 is classified under CWE-791: Incomplete Filtering of Special Elements (The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.).
How can I check PyPI dependencies for CVE-2026-2969?
Run the dependency tree command: 'pip show datapizza-ai-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q5xx-fxv3-xxqf",
  "modified" : "2026-02-25T17:52:48Z",
  "published" : "2026-02-23T06:30:18Z",
  "aliases" : [ "CVE-2026-2969" ],
  "summary" : "datapizza-ai: Server-Side Template Injection in ChatPromptTemplate via Jinja2 Template Handler",
  "details" : "A flaw has been found in datapizza-labs datapizza-ai 0.0.2. Affected is the function ChatPromptTemplate of the file datapizza-ai-core/datapizza/modules/prompt/prompt.py of the component Jinja2 Template Handler. This manipulation of the argument Prompt causes improper neutralization of special elements used in a template engine. Remote exploitation of the attack is possible. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datapizza-ai-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2969"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/datapizza-labs/datapizza-ai"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hacktivesec/datapizza-ai-disclosure/blob/main/ssti.md"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.347336"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.347336"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.755357"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1336", "CWE-791" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-25T17:52:48Z",
    "nvd_published_at" : "2026-02-23T05:16:19Z"
  }
}