Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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
PR:L reflects mandatory authenticated access; S:U aligns with CVSS 4.0 SC:N/SI:N/SA:N (no scope change); C/I/A:L mirrors the 4.0 VC/VI/VA:L sandboxed-impact assessment.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A security flaw has been discovered in langgenius dify up to 1.14.2. This issue affects the function jinja2.Template of the file api/core/helper/code_executor/jinja2/jinja2_transformer.py of the component Jinja2 Handler. The manipulation results in improper neutralization of special elements used in a template engine. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Server-side template injection (SSTI) in Dify's Jinja2 Handler (versions ≤1.14.2) allows remote, low-privileged authenticated attackers to inject malicious Jinja2 template expressions through the code execution subsystem, resulting in information disclosure and potential further impact. A public proof-of-concept exploit is available on GitHub, materially lowering the bar for exploitation. The vendor did not respond to responsible disclosure, meaning no patch has been released and no official mitigation guidance exists.
Technical ContextAI
CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) describes server-side template injection, where user-controlled input is passed unsanitized into a Jinja2 Template() constructor or render call. The vulnerable component in Dify - an open-source LLM application development platform - is the Jinja2 transformer at api/core/helper/code_executor/jinja2/jinja2_transformer.py, which is responsible for rendering Jinja2 templates within the platform's code execution pipeline. In Python environments, Jinja2 SSTI is particularly severe because template context access can expose Python builtins, object class hierarchies, and, absent effective sandboxing, yield arbitrary code execution via __class__.__mro__ traversal. The CPE cpe:2.3:a:langgenius:dify:*:*:*:*:*:*:*:* confirms all Dify releases through version 1.14.2 are affected, spanning both self-hosted and container-based deployments.
RemediationAI
No vendor-released patch has been identified at time of analysis; the vendor did not respond to responsible disclosure and no patched version has been confirmed. The most effective compensating control is to disable the Jinja2 code executor feature in Dify's configuration if it is not operationally required, eliminating the attack surface entirely. If the feature must remain enabled, restrict access to it to the minimum set of trusted users by tightening Dify role assignments, reducing the pool of accounts that can submit or modify Jinja2 templates. Deploying a WAF rule to detect common Jinja2 SSTI payloads (e.g., expressions containing double braces, __class__, __mro__, config, or cycler) can reduce automated exploitation, though signature-based rules carry bypass risk and should be treated as a secondary control. Organizations should monitor the VulDB advisory at https://vuldb.com/vuln/385555 and the POC reference at https://github.com/CVE-Hunter-Leo/CVE/issues/14 for any patch releases or updated guidance.
Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c
Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e
Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor
Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all
Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio
Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re
Server-side template injection in the TYPO3 'Powermail' extension lets an anonymous user submit Fluid template syntax th
Server-side template injection in FOSSBilling versions prior to 0.8.0 allows authenticated administrators to execute arb
AutoGPT versions 0.3.4 and earlier are vulnerable to a Server-Side Template Injection (SSTI) that could lead to Remote C
Same technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-52412
GHSA-9qv6-q72p-wgw8