Security Advisory CVE-2026-40478: Kerentanan pada Thymeleaf
Summary
A Server-Side Template Injection (SSTI) vulnerability has been discovered in Thymeleaf, allowing attackers to perform unauthorized execution if an application passes unvalidated user input to the template engine.
Affected Products
- Thymeleaf version 3.1.3.RELEASE and earlier (prior to version 3.1.4)
Technical Details
This vulnerability is caused by a failure in the neutralization mechanism during Expression Language execution. Although Thymeleaf provides protection against injection, certain syntax patterns are not properly handled, allowing attackers to bypass the protection mechanism if user input is passed directly to the template engine without validation.
Impact
Attackers can bypass existing injection protection mechanisms and perform unauthorized execution of expressions/code on the server side (Server-Side Template Injection).
Mitigation
- Immediately update Thymeleaf to version 3.1.4.RELEASE or newer.
- Avoid using user input directly within templates without adequate validation and sanitization.
- Implement strict input controls.
- Use template engine configurations that restrict access to sensitive expressions and objects.
References
- Security Advisory CVE-2026-40478
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.