# CVE-2026-41901: Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-05-04T21:15:20.000Z
- Modified: 2026-06-17T10:47:09.893Z
- Also known as: GHSA-c9ph-gxww-7744
- Weaknesses: CWE-917, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- thymeleaf thymeleaf: < 3.1.5.RELEASE
- org.thymeleaf:thymeleaf (Maven): before 3.1.5.RELEASE
- org.thymeleaf:thymeleaf-spring5 (Maven): before 3.1.5.RELEASE
- org.thymeleaf:thymeleaf-spring6 (Maven): before 3.1.5.RELEASE

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-41901](https://www.cve.org/CVERecord?id=CVE-2026-41901), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-c9ph-gxww-7744](https://github.com/advisories/GHSA-c9ph-gxww-7744), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-41901](https://nvd.nist.gov/vuln/detail/CVE-2026-41901), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41901 · Whole record: https://cve.day/CVE-2026-41901.json · Rebuilt by cve.day 2026-11-25T22:59:21.515Z
