CVE-2026-40477
Thymeleaf is a server-side Java template engine for web and …
Thymeleaf is a server-side Java template engine for web and standalone environments. Versions 3.1.3.RELEASE and prior contain a security bypass vulnerability in the expression execution mechanisms. Although the library provides mechanisms to prevent expression injection, it fails to properly restrict the scope of accessible objects, allowing specific potentially sensitive objects to be reached from within a template. If an application developer passes unvalidated user input directly to the template engine, an unauthenticated remote attacker can bypass the library's protections to achieve Server-Side Template Injection (SSTI). This issue has ben fixed in version 3.1.4.RELEASE.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/thymeleaf/thymeleaf/security/advisories/GHSA-r4v4-5mwr-2fwr
- github.com/advisories/GHSA-r4v4-5mwr-2fwr
- nvd.nist.gov/vuln/detail/CVE-2026-40477
- access.redhat.com/errata/RHSA-2026:21772
- access.redhat.com/security/cve/CVE-2026-40477
- bugzilla.redhat.com/show_bug.cgi?id=2459344
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40477.json
- nvd.nist.gov/vuln/detail/CVE-2026-40477
- cve.org/CVERecord?id=CVE-2026-40477
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.