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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:thymeleaf:thymeleaf:*:*:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Thymeleaf es un motor de plantillas Java del lado del servidor para entornos web y autónomos. Las versiones 3.1.3.RELEASE y anteriores contienen una vulnerabilidad de omisión de seguridad en los mecanismos de ejecución de expresiones. Aunque la biblioteca proporciona mecanismos para prevenir la inyección de expresiones, no logra neutralizar adecuadamente patrones de sintaxis específicos que permiten la ejecución de expresiones no autorizadas. Si un desarrollador de aplicaciones pasa entrada de usuario no validada directamente al motor de plantillas, un atacante remoto no autenticado puede omitir las protecciones de la biblioteca para lograr la inyección de plantillas del lado del servidor (SSTI). Este problema ha sido corregido en la versión 3.1.4.RELEASE.

Information

Published : 2026-04-17 22:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40478

Mitre link : CVE-2026-40478

CVE.ORG link : CVE-2026-40478


JSON object : View

Products Affected

thymeleaf

  • thymeleaf
CWE
CWE-917

Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine