Paper/Archive/CVE-2026-41901

CVE-2026-41901

thymeleaf thymeleaf — Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
thymeleaf< 3.1.5.RELEASE–CNA

Scores by source

GitHub_M (CNA)9.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total

References

refgithub.com/thymeleaf/thymeleaf/security/advisories/GHSA-c9ph-gxww-7744