{"id":"CVE-2026-41901","published":"2026-05-12T22:35:50Z","modified":"2026-05-13T12:08:38Z","title":"Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions","vendor":"thymeleaf","product":"thymeleaf","tier":"core","eol":null,"affectedVersions":[{"vendor":"thymeleaf","product":"thymeleaf","versions":["< 3.1.5.RELEASE"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-13T12:07:53.448371Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The Thymeleaf server-side Java template engine contains a flaw in its expression execution mechanisms, where specific constructs are not properly neutralized in sandboxed (restricted) contexts, allowing expressions meant to be blocked to run. An attacker who can supply unsanitized expression content that the application passes to the template engine, and whose values are rendered inside a sandboxed context of a template, can achieve server-side template injection, with a high attack complexity and no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:18:53Z"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00427,"percentile":0.37792,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-10-10","exploitedFirstSeen":"2026-10-10","ransomware":false,"evidence":[{"url":"https://euvd.enisa.europa.eu/vulnerability/CVE-2026-41901","date":"2026-10-10"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":6,"pulses":[{"name":"Known_Cve | May 21, 2026","url":"https://otx.alienvault.com/pulse/6a0dc2491bcde0bdb3d7e14e","created":"2026-05-20"},{"name":"Known_Cve | May 20, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0c70e0012db9b5d3f1491b","created":"2026-05-19"},{"name":"Known_Cve | May 19, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0b1fb13f83c21729d9156a","created":"2026-05-18"},{"name":"Known_Cve | May 18, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a09cd588d4c1cca2886f0d1","created":"2026-05-17"},{"name":"Known_Cve | May 17, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a087bdcf5d6f8e5402ce221","created":"2026-05-16"},{"name":"Known_Cve | May 14, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/6a0487a67394f954caa4b773","created":"2026-05-13"}],"provenance":"machine"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-c9ph-gxww-7744","tags":["x_refsource_CONFIRM"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"from":["GHSA-c9ph-gxww-7744"],"provenance":"source"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring5","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"from":["GHSA-c9ph-gxww-7744"],"provenance":"source"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring6","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"from":["GHSA-c9ph-gxww-7744"],"provenance":"source"}],"advisories":[{"id":"GHSA-c9ph-gxww-7744","url":"https://github.com/advisories/GHSA-c9ph-gxww-7744","severity":"CRITICAL","ecosystem":"Maven","package":"org.thymeleaf:thymeleaf","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-c9ph-gxww-7744","url":"https://github.com/advisories/GHSA-c9ph-gxww-7744","severity":"CRITICAL","ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring5","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-c9ph-gxww-7744","url":"https://github.com/advisories/GHSA-c9ph-gxww-7744","severity":"CRITICAL","ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring6","vulnerableRanges":["<3.1.5.RELEASE"],"patched":["3.1.5.RELEASE"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2026-29872","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-29872","exploited":true,"exploitedSince":"2026-10-10","provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-05-23","earliestUrl":"https://github.com/HORKimhab/CVE-2026-41901","repos":[{"name":"HORKimhab/CVE-2026-41901","url":"https://github.com/HORKimhab/CVE-2026-41901","stars":0,"created":"2026-05-23"}]},"first":{"date":"2026-05-23","source":"PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-41901"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-05-12","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-41901","provenance":"source"},{"date":"2026-05-23","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-41901","provenance":"source"},{"date":"2026-10-10","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://euvd.enisa.europa.eu/vulnerability/CVE-2026-41901","provenance":"source"},{"date":"2026-10-10","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-29872","provenance":"source"}],"speed":{"daysToPublicExploit":11,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":65.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 42 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":7.56,"detail":"percentile 0.3779"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":1.92,"detail":"6 pulses"},{"name":"CVSS severity","points":6.3,"detail":"base score 9"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-thymeleaf-cve-2026-40478","packageHistory":[{"cve":"CVE-2026-40477","published":"2026-04-17","fixed":"3.1.4.RELEASE","kev":false},{"cve":"CVE-2026-40478","published":"2026-04-17","fixed":"3.1.4.RELEASE","kev":false,"link":{"from":"CVE-2026-40478","to":"CVE-2026-41901","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.thymeleaf:thymeleaf","fromFixed":"3.1.4.RELEASE","toFixed":"3.1.5.RELEASE","daysApart":25},{"kind":"version-step","provenance":"source","package":"Maven:org.thymeleaf:thymeleaf-spring5","fromFixed":"3.1.4.RELEASE","toFixed":"3.1.5.RELEASE","daysApart":25},{"kind":"similar","provenance":"machine","score":0.68,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-41901","published":"2026-05-12","fixed":"3.1.5.RELEASE","kev":false}],"package":"Maven:org.thymeleaf:thymeleaf"}}