CVE-2026-41901
published critical CVSS 3.1 · 9.0Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| thymeleaf | — | thymeleaf< 3.1.5.RELEASE | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| thymeleaf | thymeleaf | < 3.1.5.RELEASE (affected) | GitHub_M · cna |
Weaknesses
2- CWE-917 CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
- CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
References
1Provider assertions
2GitHub_M · cna
Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 89406a011ae8ee43be80a22ff80967a7835127709c2ff43c4d8bb0b26fca8a64
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record