CVE-2026-40477
Java vulnerability analysis and mitigation

Impact

A security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf up to and including 3.1.3.RELEASE. 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).

Patches

This has been fixed in Thymeleaf 3.1.4.RELEASE.

Workarounds

No workaround is available beyond ensuring applications do not pass unvalidated user input directly to the template engine. Upgrading to 3.1.4.RELEASE is strongly recommended in any case.

Credits

Thanks to Thomas Reburn (Praetorian) for responsible disclosure.


SourceNVD

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40478CRITICAL9
  • JavaJava
  • org.thymeleaf:thymeleaf-spring5
NoYesApr 15, 2026
CVE-2026-40477CRITICAL9
  • JavaJava
  • org.thymeleaf:thymeleaf-spring6
NoYesApr 15, 2026
CVE-2026-40882HIGH7.6
  • JavaJava
  • io.openremote:openremote-manager
NoYesApr 15, 2026
GHSA-gj7p-595x-qwf5MEDIUM6.8
  • JavaJava
  • dev.dsf:dsf-common-jetty
NoYesApr 15, 2026
GHSA-xmj9-7625-f634MEDIUM6.3
  • JavaJava
  • dev.dsf:dsf-bpe-server
NoYesApr 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management