CVE-2026-40478
9.0 · CRITICALOverview
CVE-2026-40478 is a critical-severity vulnerability affecting thymeleaf thymeleaf. It was published on April 17, 2026 and has a CVSS 3.1 base score of 9.0 (CRITICAL).
This vulnerability has a CVSS 3.1 base score of 9.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
Technical 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.
Remediation
Check the references section for vendor advisories and patches from thymeleaf. Update thymeleaf to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| thymeleaf | thymeleaf | >= 0, < 3.1.4 | Affected |
References
Frequently Asked Questions
What is CVE-2026-40478?
CVE-2026-40478 is a critical-severity vulnerability affecting thymeleaf thymeleaf. It was published on April 17, 2026 and has a CVSS 3.1 base score of 9.0 (CRITICAL).
How severe is CVE-2026-40478?
This vulnerability has a CVSS 3.1 base score of 9.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
How do I fix or remediate CVE-2026-40478?
Check the references section for vendor advisories and patches from thymeleaf. Update thymeleaf to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2026-40478?
CyberStrike's AI-powered security agents can automatically detect CVE-2026-40478 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related CRITICAL CVEs from 2026
View all →A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 a
n8n is an open source workflow automation platform. Versions starting with 1.65.0 and below 1.121.0
Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the
This vulnerability allows authenticated attackers to execute commands via the hostname of the device
Remote Code Execution vulnerability that allows unauthenticated attackers to inject arbitrary comman
XWiki Full Calendar Macro displays objects from the wiki on the calendar. Prior to version 2.4.5, us
Successful exploitation of the SQL injection vulnerability could allow an unauthenticated remote att
A static password reset token in the password reset function of DDSN Interactive Acora CMS v10.7.1 a
Affected devices do not properly enforce user authentication on specific API endpoints. This could f
Sandbox escape in the Messaging System component. This vulnerability was fixed in Firefox 147 and Th
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or mor
Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to 2.7.0, th