CVE-2026-18632: langgenius dify Jinja2 jinja2_transformer.py jinja2.Template special elements used in a template engine

Published Aug 3, 2026
·
Updated

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/codeexecutor/jinja2/jinja2transformer.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.

Affected Software

1 affected component
langgenius/dify<=1.14.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade langgenius dify to a version that resolves this vulnerability.

    Fixed in 1.14.2
  2. Compensating control

    Because the issue can be launched remotely and an exploit is publicly available, restrict network access to the Dify/Jinja2 Handler endpoint (where api/core/helper/code_executor/jinja2/jinja2_transformer.py runs) to trusted sources only (e.g., via firewall/ACL or put it behind an allowlisted reverse proxy).

Event History

Aug 3, 2026
CVE Published
via MITRE·07:30 PM
Data Sourced
via MITRE·07:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18632?

The severity of CVE-2026-18632 is rated as medium with a CVSS score of 6.3.

2

How do I fix CVE-2026-18632?

To fix CVE-2026-18632, update langgenius dify to version 1.14.3 or later.

3

What impact does CVE-2026-18632 have on applications?

CVE-2026-18632 can lead to improper neutralization of special elements in templates, potentially resulting in code execution vulnerabilities.

4

Which component is affected by CVE-2026-18632?

CVE-2026-18632 affects the Jinja2 Handler in the langgenius dify application.

5

Is CVE-2026-18632 exploitable remotely?

Yes, CVE-2026-18632 is remotely exploitable, allowing attackers to leverage the flaw without local access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203