Is org.thymeleaf:thymeleaf 2.0 vulnerable?

Maven · 22 releases from 2.0.0 to 2.0.21 · latest org.thymeleaf:thymeleaf is 3.1.7.RELEASE · checked 18 Nov 2026

Yes: 3 known advisories

Yes. org.thymeleaf:thymeleaf 2.0.21, the last 2.0 release, is affected by 3 known security advisories (3 critical), including CVE-2026-41901, CVE-2026-40478, CVE-2026-40477. Upgrade to 3.1.5.RELEASE or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.thymeleaf:thymeleaf -DdepVersion=3.1.5.RELEASE -DforceVersion=true

Is your project on an affected org.thymeleaf:thymeleaf?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting org.thymeleaf:thymeleaf 2.0.21

  • CriticalCVE-2026-41901GHSA-c9ph-gxww-77444 May 2026

    Sandboxed Thymeleaf expressions vulnerable to improper recognition of unauthorized syntax patterns

    Affected
    <3.1.5.RELEASE
    Fixed in
    3.1.5.RELEASE
  • CriticalCVE-2026-40478GHSA-xjw8-8c5c-9r7915 Apr 2026

    Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf

    Affected
    <3.1.4.RELEASE
    Fixed in
    3.1.4.RELEASE
  • CriticalCVE-2026-40477GHSA-r4v4-5mwr-2fwr15 Apr 2026

    Improper restriction of the scope of accessible objects in Thymeleaf expressions

    Affected
    <3.1.4.RELEASE
    Fixed in
    3.1.4.RELEASE

Every org.thymeleaf:thymeleaf 2.0.x release

Affected: 2.0.0 to 2.0.21. Latest org.thymeleaf:thymeleaf: 3.1.7.RELEASE.

VersionKnown advisories
org.thymeleaf:thymeleaf 2.0.21CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.20CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.19CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.18CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.17CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.16CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.15CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.14CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.13CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.12CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.11CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.10CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.9CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.8CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.7CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.6CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.5CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.4CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.3CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.2CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.1CVE-2026-41901, CVE-2026-40478, CVE-2026-40477
org.thymeleaf:thymeleaf 2.0.0CVE-2026-41901, CVE-2026-40478, CVE-2026-40477

Which of your client projects are still on org.thymeleaf:thymeleaf 2.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.thymeleaf:thymeleaf version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.thymeleaf:thymeleaf versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.