CVE-2026-41901: Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions
Vulnerability summary
CVE-2026-41901 is a critical (CVSS 9.0) vulnerability in Thymeleaf. It is known to be exploited: ENISA lists it, first on 10-10-2026. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 37.6% of scored vulnerabilities.
Listed as exploited by ENISA (10-10-2026)
Source freshness unavailable
How is this decided?Timeline
- 12-05-2026PublishedVulnerability first disclosed.
- 13-05-2026Last modifiedVulnerability information updated.
- 10-10-2026Added to ENISA KEVExploitedAdded to the ENISA known exploited vulnerabilities catalog.
Description
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 metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Decrease -0.12 pp
From 0.54% on 22-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
- Added
- 10-10-2026
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-917Improper Neutralization of Special Elements used in an Expression Language StatementThe product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.
- CWE-1336Improper Neutralization of Special Elements Used in a Template EngineThe 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.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Org.thymeleaf3 products
- thymeleaf< 3.1.5.RELEASE
- thymeleaf-spring5< 3.1.5.RELEASE
- thymeleaf-spring6< 3.1.5.RELEASE
Thymeleaf1 product
- thymeleaf< 3.1.5.RELEASE
2 vendors · 4 products