Critical

Template injection in thymeleaf-spring5

  • Disclosed: 10.11.2021
  • Updated: 11.10.2026 11:22

In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to remote code execution.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.thymeleaf:thymeleaf-spring5 < 3.0.13.RELEASE 3.0.13.RELEASE

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Platform
Java / Kotlin (Maven)
Package
org.thymeleaf:thymeleaf-spring5
Disclosed
10.11.2021
Updated
11.10.2026 11:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-qcj6-jqrg-4wp2 - CC BY 4.0

Vulnerability history: org.thymeleaf:thymeleaf-spring5

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
11.2021 05.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 4

Disclosures per year

  1. 2021: 1
  2. 2022: 0
  3. 2023: 0
  4. 2024: 0
  5. 2025: 0
  6. 2026: 3
  1. Critical · 9.0 CVE-2026-40478 < 3.1.4.RELEASE 3.1.4.RELEASE
  2. Critical · 9.0 CVE-2026-40477 < 3.1.4.RELEASE 3.1.4.RELEASE
  3. Template injection in thymeleaf-spring5 this entry
    Critical · 9.8 CVE-2021-43466 < 3.0.13.RELEASE 3.0.13.RELEASE

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.