Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.thymeleaf/thymeleaf
  4. ›
  5. CVE-2026-41901

CVE-2026-41901: Sandboxed Thymeleaf expressions vulnerable to improper recognition of unauthorized syntax patterns

May 4, 2026

A security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf up to and including 3.1.4.RELEASE. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI).

References

  • github.com/advisories/GHSA-c9ph-gxww-7744
  • github.com/thymeleaf/thymeleaf
  • github.com/thymeleaf/thymeleaf/security/advisories/GHSA-c9ph-gxww-7744
  • nvd.nist.gov/vuln/detail/CVE-2026-41901

Code Behaviors & Features

Detect and mitigate CVE-2026-41901 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.5.RELEASE

Fixed versions

  • 3.1.5.RELEASE

Solution

Upgrade to version 3.1.5.RELEASE or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Source file

maven/org.thymeleaf/thymeleaf/CVE-2026-41901.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:57 +0000.