Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-40478

Опубликовано: 17 апр. 2026
Источник: redhat
CVSS3: 8.5

Описание

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.

A flaw was found in Thymeleaf, a server-side Java template engine. An unauthenticated remote attacker can exploit this vulnerability by providing unvalidated user input to the template engine. This bypasses existing security mechanisms, allowing for the execution of unauthorized expressions and leading to Server-Side Template Injection (SSTI).

Меры по смягчению последствий

The vulnerability arises when unvalidated user input is directly passed to the Thymeleaf template engine. To mitigate this, application developers should implement robust input validation and sanitization for all user-supplied data before it is processed by the Thymeleaf template engine. This ensures that malicious expressions cannot be executed.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat build of Apache Camel for Spring Boot 4camel-thymeleafNot affected
Red Hat build of Apache Camel for Spring Boot 4thymeleafNot affected
Red Hat Fuse 7thymeleafWill not fix
Red Hat JBoss Enterprise Application Platform 7smallrye-mutiny-vertx-web-templ-thymeleafNot affected
Red Hat JBoss Enterprise Application Platform 7thymeleafNot affected
Red Hat JBoss Enterprise Application Platform 7vertx-web-templ-thymeleafNot affected
Red Hat JBoss Enterprise Application Platform 8smallrye-mutiny-vertx-web-templ-thymeleafNot affected
Red Hat JBoss Enterprise Application Platform 8thymeleafNot affected
Red Hat JBoss Enterprise Application Platform 8vertx-web-templ-thymeleafNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packsmallrye-mutiny-vertx-web-templ-thymeleafNot affected

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-917
https://bugzilla.redhat.com/show_bug.cgi?id=2459349thymeleaf: Thymeleaf: Server-Side Template Injection via expression execution bypass

8.5 High

CVSS3

Связанные уязвимости

CVSS3: 9
nvd
4 месяца назад

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.

CVSS3: 9
github
4 месяца назад

Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf

CVSS3: 9
fstec
4 месяца назад

Уязвимость JavaScript-движка Thymeleaf, связанная с непринятием мер по нейтрализации специальных элементов, используемых в операторе языка выражений, позволяющая нарушителю выполнить произвольный код

8.5 High

CVSS3