CVE-2026-18632
Received Received - Intake

Improper Template Neutralization in Dify

Vulnerability report for CVE-2026-18632, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-03

Last updated on: 2026-08-03

Assigner: VulDB

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-03
Last Modified
2026-08-03
Generated
2026-08-04
AI Q&A
2026-08-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
langgenius dify to 1.14.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-791 The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a security flaw in langgenius dify up to version 1.14.2. It affects the jinja2.Template function in the file api/core/helper/code_executor/jinja2/jinja2_transformer.py. The issue involves improper neutralization of special elements used in a template engine, which could allow remote attackers to manipulate the system.

Impact Analysis

This vulnerability may allow remote attackers to execute arbitrary code or gain unauthorized access to the system. It could lead to data breaches, system compromise, or other malicious activities depending on the attacker's goals and the system's configuration.

Mitigation Strategies

Immediately upgrade langgenius dify to a version beyond 1.14.2 where the vulnerability is patched. If no patch is available, disable the Jinja2 Handler component in api/core/helper/code_executor/jinja2/jinja2_transformer.py to prevent template engine manipulation. Monitor network traffic for unusual activity targeting this component.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18632. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart