PoC Monitor
← All CVEs
CVE-2026-40477published 17 Apr 2026 21:53 UTCData: JSON · API

Thymeleaf

Improper restriction of the scope of accessible objects in Thymeleaf expressions

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CNA · CWE-917
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

thymeleaf thymeleaf
  • < 3.1.4.RELEASE

Fixed in 3.1.4.RELEASE

thymeleaf org.thymeleaf:thymeleaf-spring5
  • < 3.1.4.RELEASE

Fixed in 3.1.4.RELEASE

thymeleaf org.thymeleaf:thymeleaf-spring6
  • < 3.1.4.RELEASE

Fixed in 3.1.4.RELEASE

Mitigation

Upgrade thymeleaf to 3.1.4.RELEASE or later.

Upgrade org.thymeleaf:thymeleaf-spring5 to 3.1.4.RELEASE or later.

Upgrade org.thymeleaf:thymeleaf-spring6 to 3.1.4.RELEASE or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published17 Apr 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 informational

Informational 1
RepositoryCreatedStarsAssessment
xiaoqiMikko/thymeleaf-check 4 Sep 2026 +140 d 0 Informational · detection

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.