Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-11104-Python-SSTI-via-Jinja2-attr-Filter-Bypass — PoC exploit for CVE-2026-11104 demonstrating Jinja2 attr filter bypass in Flask, enabling server-side template injection and remote code execution. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-11104-python-ssti-via-jinja2-attr-filter-bypass
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLearning & Education
GitHubgeorge0papasotiriou/cve-2026-11104-python-ssti-via-jinja2-attr-filter-bypass

CVE-2026-11104-Python-SSTI-via-Jinja2-attr-Filter-Bypass

PoC exploit for CVE-2026-11104 demonstrating Jinja2 attr filter bypass in Flask, enabling server-side template injection and remote code execution.

View Repository
21 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-11104 – Python SSTI via Jinja2 |attr Filter Bypass

Program Code (Flask)

root@kitploit:~
# vulnerable_app.py - Flask with Jinja2 SSTI via 'attr' filter
from flask import Flask, request, render_template_string

app = Flask(__name__)

@app.route('/')
def index():
    name = request.args.get('name', 'World')
    # UNSAFE: directly renders user input as template
    template = f"<h1>Hello {name}!</h1>"
    return render_template_string(template)

if __name__ == '__main__':
    app.run(port=5000)

CVE-2026-11104 – Server-Side Template Injection via Jinja2 |attr Filter

Severity: Critical

Overview

A Flask application uses render_template_string with user input, allowing server-side template injection. Even if some keywords are blocked, the |attr filter can be used to bypass filters and achieve remote code execution.

Vulnerability Details

  • Type: SSTI
  • Impact: Remote code execution, full server compromise.
  • Root Cause: Untrusted data is placed directly into a Jinja2 template without sandboxing, enabling an attacker to traverse Python object internals and call dangerous functions.

Exploit Demonstration

  1. Start the vulnerable app:
    root@kitploit:~
    pip install flask
    python vulnerable_app.py
    
  2. Run the exploit:
    root@kitploit:~
    python exploit_ssti_attr.py
    
Download Tool