Live threats

All CVEs / Thymeleaf

CVE-2026-40477Thymeleaf

Critical 9.0 No auth needed

Priority
69
CVSS 3.1
9.0
EPSS
—
Auth required
No
Published
Apr 17, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-917, CWE-1336
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Thymeleaf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.thymeleaf:thymeleaf < 3.1.4.RELEASE 3.1.4.RELEASE —
Maven org.thymeleaf:thymeleaf-spring5 < 3.1.4.RELEASE 3.1.4.RELEASE —
Maven org.thymeleaf:thymeleaf-spring6 < 3.1.4.RELEASE 3.1.4.RELEASE —

Per OSV / GitHub Advisories (GHSA-r4v4-5mwr-2fwr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
thymeleafthymeleaf< 3.1.4

Official sources

References

Links published by the sources. Open them with care.