CVEBrief

Home / thymeleaf / thymeleaf / CVE-2026-40478

CVE-2026-40478: is it exploited, and which versions of thymeleaf are affected and fixed?

CVE-2026-40478 is an improper Neutralization of Special Elements used in an Expression Language Statement vulnerability in thymeleaf. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: org.thymeleaf:thymeleaf before 3.1.4.RELEASE, org.thymeleaf:thymeleaf-spring5 before 3.1.4.RELEASE and org.thymeleaf:thymeleaf-spring6 before 3.1.4.RELEASE (GitHub advisory GHSA-xjw8-8c5c-9r79). Fixed in 3.1.4.RELEASE (GitHub advisory GHSA-xjw8-8c5c-9r79). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
org.thymeleaf:thymeleaf before 3.1.4.RELEASE, org.thymeleaf:thymeleaf-spring5 before 3.1.4.RELEASE and org.thymeleaf:thymeleaf-spring6 before 3.1.4.RELEASE
GitHub advisory GHSA-xjw8-8c5c-9r79
Fixed in
3.1.4.RELEASE
GitHub advisory GHSA-xjw8-8c5c-9r79
Severity
Critical 9.1
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
1.12% in 30 days
higher than 67% of CVEs; FIRST, December 2, 2026

What is CVE-2026-40478?

Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf

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.

From the CVE record by GitHub_M, last updated August 18, 2026, 12:05 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
thymeleafthymeleaf< 3.1.4.RELEASE
thymeleaforg.thymeleaf:thymeleaf-spring5< 3.1.4.RELEASE
thymeleaforg.thymeleaf:thymeleaf-spring6< 3.1.4.RELEASE

As the CVE record by GitHub_M states it, last updated August 18, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.thymeleaf:thymeleaf< 3.1.4.RELEASE3.1.4.RELEASEGHSA-xjw8-8c5c-9r79
Mavenorg.thymeleaf:thymeleaf-spring5< 3.1.4.RELEASE3.1.4.RELEASEGHSA-xjw8-8c5c-9r79
Mavenorg.thymeleaf:thymeleaf-spring6< 3.1.4.RELEASE3.1.4.RELEASEGHSA-xjw8-8c5c-9r79

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2026. Summary: Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
thymeleafthymeleafbefore 3.1.4application

NVD analysis (status Modified), last modified October 26, 2026, 21:10 UTC.

How severe is CVE-2026-40478?

ScoreVersionVectorSource
Critical 9.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HGitHub_M
High 8.5CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:Hredhat-SADP

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-40478 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, April 21, 2026)
EPSS
1.12% probability of exploitation activity in the next 30 days, percentile 67.2 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 13, 2026
Published
April 17, 2026, 21:57 UTC
CVE record updated
August 18, 2026, 12:05 UTC by GitHub_M
NVD
Modified, last modified October 26, 2026, 21:10 UTC
Last checked
CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect thymeleaf?

Every CVE in thymeleaf

Questions about CVE-2026-40478

Is CVE-2026-40478 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.12% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of thymeleaf are affected by CVE-2026-40478?

org.thymeleaf:thymeleaf before 3.1.4.RELEASE, org.thymeleaf:thymeleaf-spring5 before 3.1.4.RELEASE and org.thymeleaf:thymeleaf-spring6 before 3.1.4.RELEASE, per the GitHub advisory GHSA-xjw8-8c5c-9r79. The tables above give every range the sources list.

Which version fixes CVE-2026-40478?

3.1.4.RELEASE, per the GitHub advisory GHSA-xjw8-8c5c-9r79. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-40478?

Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2026-40478?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.