Back to CVE records
Critical 9.1Published Apr 17, 2026

CVE-2026-40477Improper restriction of the scope of accessible objects in Thymeleaf expressions

Updated under an hour ago ()

Does this affect you?

It affects thymeleaf and 8 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
9.1 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness (CWE)
CWE-917, CWE-1336
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Aug 17, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
thymeleaf thymeleaf
thymeleaf:thymeleaf (from the name)
before 3.1.4.RELEASE
CNA record
thymeleaf org.thymeleaf:thymeleaf-spring5
thymeleaf:org.thymeleaf_thymeleaf_spring5 (from the name)
before 3.1.4.RELEASE
CNA record
thymeleaf org.thymeleaf:thymeleaf-spring6
thymeleaf:org.thymeleaf_thymeleaf_spring6 (from the name)
before 3.1.4.RELEASE
CNA record
from 1779528224 not affected
CISA ADP
4
CISA ADP
Red Hat Red Hat Fuse 7
redhat:jboss_fuse
7
CISA ADP
Red Hat Red Hat JBoss Enterprise Application Platform 7
redhat:jboss_enterprise_application_platform
7
CISA ADP
All versions
CISA ADP
Red Hat Red Hat Single Sign-On 7
redhat:red_hat_single_sign_on
7
CISA ADP
thymeleaf thymeleaf
thymeleaf:thymeleaf
before 3.1.4
NVD

References

  • x-refsource-confirm, vendor-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.