CVE-2026-40477

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

Configuration 1 (hide)

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

History

26 Oct 2026, 22: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 restringir adecuadamente el alcance de los objetos accesibles, permitiendo que objetos específicos potencialmente sensibles sean alcanzados desde dentro de una plantilla. 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 22:10


NVD link : CVE-2026-40477

Mitre link : CVE-2026-40477

CVE.ORG link : CVE-2026-40477


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