CVE-2026-40478

CRITICAL
Published Apr 17, 2026 Modified Apr 24, 2026 CWE-917 CWE-1336

Description

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 the expression execution mechanisms. Although the library provides mechanisms to prevent expression injection, it fails to properly neutralize specific syntax patterns that allow for the execution of unauthorized expressions. 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 v3.1 Score

9.0
CRITICAL
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

EPSS — Exploit Prediction

0.0005
Probability of exploitation
0.16%
Percentile rank

EPSS estimates the probability that this vulnerability will be exploited in the wild within the next 30 days. A higher score means more likely to be exploited.

Weakness Type (CWE)

CWE-917 CWE-917
CWE-1336 CWE-1336

Affected Products

Vendor Product
thymeleaf thymeleaf

References

Frequently Asked Questions

What is CVE-2026-40478? +
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 the expression execution mechanisms. Although the library provides mechanisms to prevent expression injection, it fails to properly neutralize specific syntax patterns that allow for the execution of unauthorized expressions. 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. It has a CVSS v3.1 base score of 9.0 (CRITICAL).
How severe is CVE-2026-40478? +
CVE-2026-40478 has a CVSS v3.1 score of 9.0 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately. The EPSS score is 0.0005, placing it in the 0th percentile for exploitation probability.
What products are affected by CVE-2026-40478? +
CVE-2026-40478 affects products from thymeleaf, specifically: thymeleaf. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2026-40478? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2026-40478 — free, no signup required.

Start Free Scan