WaratekVRT Sign in

CVE-2026-40478 Thymeleaf

Affected softwareThymeleaf
Severity9.0 Critical CVSS 3.1 2 scores
Fixed in3.1.4.RELEASE
WeaknessExpression language injection (CWE-917)
Published17 Apr 2026
Updated26 Oct 2026

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.

CWE-1336

Exploitation status

No public exploit

No exploit has been reported in the sources we check.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 1.1% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79 : the maintainers' own security advisory: names the version that fixes it, so the fix is the difference between two releases

CVSS

9.0 CRITICAL v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.0 CRITICAL CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H security-advisories@github.com Secondary published
CVSS 3.1 8.5 HIGH CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H redhat-SADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.thymeleaf:thymeleaf 0 3.1.4.RELEASE unbounded
org.thymeleaf:thymeleaf-spring5 0 3.1.4.RELEASE unbounded
org.thymeleaf:thymeleaf-spring6 0 3.1.4.RELEASE unbounded

Products and versions

4 products, 4 version entries
SourceVendorProductSchemeAffected versions
osv org.thymeleaf thymeleaf generic < 3.1.4
osv org.thymeleaf thymeleaf-spring5 generic < 3.1.4
osv org.thymeleaf thymeleaf-spring6 generic < 3.1.4
nvd thymeleaf thymeleaf generic < 3.1.4

References

URLTags
https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79 advisory
https://github.com/thymeleaf/thymeleaf PACKAGE
https://access.redhat.com/errata/RHSA-2026:21772
https://access.redhat.com/security/cve/CVE-2026-40478
https://bugzilla.redhat.com/show_bug.cgi?id=2459349
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40478.json

Timeline

Published2026-04-17By the CVE Program.
NVD record modified2026-10-26NVD's own last-modified date for this record.