1. Archivio CVE
  2. 2026
  3. CVE-2026-40477

CVE-2026-40477

9 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H 9 – Critica

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
thymeleaf thymeleaf < 3.1.4 –

Tipo di vulnerabilità

CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione
Integrità Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Avoid adding user-controlled data into an expression interpreter when possible.
Sviluppo If user-controlled data must be added to an expression interpreter, one or more of the following should be performed: Validate that the user input will not evaluate as an expression Encode the user input in a way that ensures it is not evaluated as an expression
Configurazione del sistema · Esercizio The framework or tooling might allow the developer to disable or deactivate the processing of EL expressions, such as setting the isELIgnored attribute for a JSP page to true.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 200 CVE di tipo CWE-917, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org