Expression Language Injection Affecting thymeleaf package, versions *


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.43% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-THYMELEAF-17950362
  • published11 Jul 2026
  • disclosed12 May 2026

Introduced: 12 May 2026

CVE-2026-41901  (opens in a new tab)
CWE-917  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:8 thymeleaf.

NVD Description

Note: Versions mentioned in the description apply only to the upstream thymeleaf package and not the thymeleaf package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

Thymeleaf is a server-side Java template engine for web and standalone environments. Prior to 3.1.5.RELEASE, a security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI). This vulnerability is fixed in 3.1.5.RELEASE.

CVSS Base Scores

version 3.1