CVE-2026-41901
CRITICAL 9.0CVSS 3.1Sandboxed Thymeleaf expressions vulnerable to improper recognition of unauthorized syntax patterns
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.
- Published
- 12 May 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-1336CWE-917
- Also known as
- GHSA-c9ph-gxww-7744
- Sources
- NVDJSONOSV GHSA-c9ph-gxww-7744JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.thymeleaf:thymeleaf | < 3.1.5.RELEASE | 3.1.5.RELEASE |
| OSV | Maven | org.thymeleaf:thymeleaf-spring5 | < 3.1.5.RELEASE | 3.1.5.RELEASE |
| OSV | Maven | org.thymeleaf:thymeleaf-spring6 | < 3.1.5.RELEASE | 3.1.5.RELEASE |
References
- https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-c9ph-gxww-7744 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41901 · ADVISORY
- https://github.com/thymeleaf/thymeleaf · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 May 2026)