Skip to main content

Dify CVE-2026-18632

| EUVDEUVD-2026-52412 LOW
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-08-03 VulDB GHSA-9qv6-q72p-wgw8
2.1
CVSS 4.0 · Vendor: VulDB

Severity by source

Vendor (VulDB) PRIMARY
2.1 MEDIUM
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
vuln.today AI
6.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

4
Severity Changed
Aug 03, 2026 - 20:22 NVD
MEDIUM LOW
CVSS changed
Aug 03, 2026 - 20:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
Analysis Generated
Aug 03, 2026 - 20:08 vuln.today
CVE Published
Aug 03, 2026 - 19:30 cve.org
MEDIUM 5.3

DescriptionCVE.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.

More in Ssti

View all
CVE-2024-23692 CRITICAL POC
9.8 May 31

Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c

CVE-2025-47916 CRITICAL POC
10.0 May 16

Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e

CVE-2024-6386 CRITICAL POC
9.9 Aug 21

Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor

CVE-2026-75650 CRITICAL POC
10.0 Sep 07

Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica

CVE-2025-23211 CRITICAL POC
9.9 Jan 28

Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve

CVE-2024-32651 CRITICAL POC
10.0 Apr 26

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic

CVE-2024-4040 CRITICAL POC
10.0 Apr 22

A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all

CVE-2026-15734 CRITICAL POC
9.8 Aug 06

Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio

CVE-2024-24724 CRITICAL POC
9.8 Apr 03

Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re

CVE-2026-77136 CRITICAL POC
9.5 Aug 25

Server-side template injection in the TYPO3 'Powermail' extension lets an anonymous user submit Fluid template syntax th

CVE-2026-28496 CRITICAL POC
9.4 Jun 23

Server-side template injection in FOSSBilling versions prior to 0.8.0 allows authenticated administrators to execute arb

CVE-2025-1040 HIGH POC
8.8 Mar 20

AutoGPT versions 0.3.4 and earlier are vulnerable to a Server-Side Template Injection (SSTI) that could lead to Remote C

Share

CVE-2026-18632 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy