Skip to content

thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar: 2 vulnerabilities (highest severity is: 9.0) #55

@mend-bolt-for-github

Description

@mend-bolt-for-github
Vulnerable Library - thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf/3.1.3.RELEASE/51474f2a90b282ee97dabcd159c7faf24790f373/thymeleaf-3.1.3.RELEASE.jar

Found in HEAD commit: 29e5aeedb20278d4c2d9ff41b8322b5115b86941

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (thymeleaf-extras-springsecurity6 version) Remediation Possible**
CVE-2026-40478 Critical 9.0 detected in multiple dependencies Transitive N/A*
CVE-2026-40477 Critical 9.0 detected in multiple dependencies Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-40478

Vulnerable Libraries - thymeleaf-spring6-3.1.3.RELEASE.jar, thymeleaf-3.1.3.RELEASE.jar

thymeleaf-spring6-3.1.3.RELEASE.jar

Library home page: http://www.thymeleaf.org

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf-spring6/3.1.3.RELEASE/4b276ea2bd536a18e44b40ff1d9f4848965ff59c/thymeleaf-spring6-3.1.3.RELEASE.jar

Dependency Hierarchy:

  • thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar (Root Library)
    • thymeleaf-spring6-3.1.3.RELEASE.jar (Vulnerable Library)

thymeleaf-3.1.3.RELEASE.jar

Library home page: http://www.thymeleaf.org

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf/3.1.3.RELEASE/51474f2a90b282ee97dabcd159c7faf24790f373/thymeleaf-3.1.3.RELEASE.jar

Dependency Hierarchy:

  • thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar (Root Library)
    • thymeleaf-spring6-3.1.3.RELEASE.jar
      • thymeleaf-3.1.3.RELEASE.jar (Vulnerable Library)

Found in HEAD commit: 29e5aeedb20278d4c2d9ff41b8322b5115b86941

Found in base branch: master

Vulnerability Details

Impact A security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf up to and including 3.1.3.RELEASE. 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). Patches This has been fixed in Thymeleaf 3.1.4.RELEASE. Workarounds No workaround is available beyond ensuring applications do not pass unvalidated user input directly to the template engine. Upgrading to 3.1.4.RELEASE is strongly recommended in any case. Credits Thanks to Dawid Bakaj (VIPentest.com) for responsible disclosure.

Publish Date: 2026-04-16

URL: CVE-2026-40478

CVSS 3 Score Details (9.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-xjw8-8c5c-9r79

Release Date: 2026-04-18

Fix Resolution: org.thymeleaf:thymeleaf:3.1.4.RELEASE,org.thymeleaf:thymeleaf-spring6:3.1.4.RELEASE,org.thymeleaf:thymeleaf-spring5:3.1.4.RELEASE

Step up your Open Source Security Game with Mend here

CVE-2026-40477

Vulnerable Libraries - thymeleaf-spring6-3.1.3.RELEASE.jar, thymeleaf-3.1.3.RELEASE.jar

thymeleaf-spring6-3.1.3.RELEASE.jar

Library home page: http://www.thymeleaf.org

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf-spring6/3.1.3.RELEASE/4b276ea2bd536a18e44b40ff1d9f4848965ff59c/thymeleaf-spring6-3.1.3.RELEASE.jar

Dependency Hierarchy:

  • thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar (Root Library)
    • thymeleaf-spring6-3.1.3.RELEASE.jar (Vulnerable Library)

thymeleaf-3.1.3.RELEASE.jar

Library home page: http://www.thymeleaf.org

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf/3.1.3.RELEASE/51474f2a90b282ee97dabcd159c7faf24790f373/thymeleaf-3.1.3.RELEASE.jar

Dependency Hierarchy:

  • thymeleaf-extras-springsecurity6-3.1.3.RELEASE.jar (Root Library)
    • thymeleaf-spring6-3.1.3.RELEASE.jar
      • thymeleaf-3.1.3.RELEASE.jar (Vulnerable Library)

Found in HEAD commit: 29e5aeedb20278d4c2d9ff41b8322b5115b86941

Found in base branch: master

Vulnerability Details

Impact A security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf up to and including 3.1.3.RELEASE. 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). Patches This has been fixed in Thymeleaf 3.1.4.RELEASE. Workarounds No workaround is available beyond ensuring applications do not pass unvalidated user input directly to the template engine. Upgrading to 3.1.4.RELEASE is strongly recommended in any case. Credits Thanks to Thomas Reburn (Praetorian) for responsible disclosure.

Publish Date: 2026-04-16

URL: CVE-2026-40477

CVSS 3 Score Details (9.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-r4v4-5mwr-2fwr

Release Date: 2026-04-18

Fix Resolution: org.thymeleaf:thymeleaf:3.1.4.RELEASE,org.thymeleaf:thymeleaf-spring6:3.1.4.RELEASE,org.thymeleaf:thymeleaf-spring5:3.1.4.RELEASE

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions