org.thymeleaf:thymeleaf-spring6@3.1.1.RELEASE

  • latest version

    3.1.5.RELEASE

  • first published

    4 years ago

  • latest version published

    7 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.thymeleaf:thymeleaf-spring6 package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Expression Language Injection

    Affected versions of this package are vulnerable to Expression Language Injection in the Conversions class (the #conversions expression utility), whose convert method loads any class by name and passes it to the conversion service without applying the type restrictions of the restricted expression execution mode. An attacker who can inject into an expression that the application evaluates in restricted mode can instantiate types that the mode forbids by naming them as conversion targets, escalating the injection beyond the limits restricted mode enforces. Exploitation requires the application to pass unvalidated input into an expression evaluated in restricted mode, such as preprocessing, th:utext, template or fragment names, or TEXT template mode. The impact is highest in Spring integrations (thymeleaf-spring5, thymeleaf-spring6), where conversion is delegated to the application's Spring ConversionService.

    How to fix Expression Language Injection?

    Upgrade org.thymeleaf:thymeleaf-spring6 to version 3.1.6.RELEASE or higher.

    [,3.1.6.RELEASE)
    • C
    Expression Language Injection

    Affected versions of this package are vulnerable to Expression Language Injection when dynamically loading classes, which allows server-side template injection that crosses the intended sandbox boundary. An attacker can execute unauthorized expressions with the privileges of the server by injecting malicious input into unsanitized variables used in sandboxed template contexts. This bypasses the isTypeForbidden() check to access StandardTypeLocator directly.

    How to fix Expression Language Injection?

    Upgrade org.thymeleaf:thymeleaf-spring6 to version 3.1.5.RELEASE or higher.

    [,3.1.5.RELEASE)
    • C
    Template Injection

    Affected versions of this package are vulnerable to Template Injection due to the TemplateEngine's improper invalidation of certain syntactic patterns during expression evaluation. An attacker can inject into sensitive objects to execute unauthorized actions.

    How to fix Template Injection?

    Upgrade org.thymeleaf:thymeleaf-spring6 to version 3.1.4.RELEASE or higher.

    [,3.1.4.RELEASE)
    • C
    Template Injection

    Affected versions of this package are vulnerable to Template Injection due to the TemplateEngine's improper restriction of accessible object scope during expression evaluation. An attacker can inject into sensitive objects to execute unauthorized actions.

    How to fix Template Injection?

    Upgrade org.thymeleaf:thymeleaf-spring6 to version 3.1.4.RELEASE or higher.

    [,3.1.4.RELEASE)