Vulnary
← back to the feed
Critical· 9official fix available

CVE-2026-40478

Thymeleaf versions 3.1.3.RELEASE and earlier allow attackers to inject and run arbitrary expressions on the server. The vulnerability bypasses the engine’s protection mechanisms. It has been fixed in 3.1.4.RELEASE.

publishedApr 17, 2026
last modifiedAug 4, 2026
sourcesNVD
severity · cvss
9
critical · how bad it is
exploitation · epss
<1%
52th percentile · chance of exploitation in 30 days
(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →
auto-deletes from the system
counting…on Sep 3, 2026

An official fix is available, so this entry is kept for 30 days and then removed automatically.

01

Who is affected

Java applications that use Thymeleaf 3.1.3.RELEASE or earlier as a template engine.

02

Real-world impact

An attacker can execute arbitrary code on the server, read or modify data, and potentially take full control of the affected system.

03

Why this severity

The CVSS score of 9 reflects that the attack requires no user interaction, no privileges, and can compromise confidentiality, integrity, and availability. The high attack complexity indicates that the attacker must craft a specific payload, but once done the impact is complete.

04

What to do about it

official fix available
recommended steps
  1. 01Upgrade Thymeleaf to version 3.1.4.RELEASE or later.
  2. 02Verify that the application is using the updated library.
  3. 03Restart the application to load the new version.

NVD-referenced vendor advisory

05

Timeline

  1. Apr 17, 2026 · Apr 17, 2026
    Published
    Disclosed and added to the National Vulnerability Database.
  2. Aug 4, 2026 · 14h ago
    Advisory updated
    The NVD record was last revised.
  3. Aug 4, 2026 · 12h ago
    Official fix available
    A vendor patch or mitigation now exists — see the remediation steps above.
06

How it’s attacked

Attack vectorNetwork (remote)
Attack complexityHigh
Privileges requiredNone
User interactionNone needed
ScopeChanged
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
07

References & advisories

(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →