{"id":"CVE-2026-40478","aliases":["GHSA-xjw8-8c5c-9r79"],"summary":"Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf","published_at":"2026-04-15T19:46:23Z","modified_at":"2026-08-18T12:05:25.573Z","products":[{"slug":"lightwell","name":"Red Hat Lightwell (gehärtete Images)","category":"red-hat"}],"rating":{"severity":"critical","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.011219999752938747,"percentile":0.6689199805259705,"date":"2026-11-19T00:00:00Z"},"priority":11,"details":"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.","affected_stack":[{"ecosystem":"Red Hat Lightwell:Maven","package":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.15.RELEASE-rhlw-00009"}]}],"versions":["1.0.0","1.0.0-beta1","1.0.0-beta2","1.0.0-beta3","1.0.0-beta4","1.0.0-beta5","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","2.0.0","2.0.0-beta1","2.0.0-beta2","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0-beta1","2.1.0-beta2","2.1.0-m1","2.1.0-m2","2.1.0-m3","2.1.0.RELEASE","2.1.1.RELEASE","2.1.2.RELEASE","2.1.3.RELEASE","2.1.4.RELEASE","2.1.5.RELEASE","2.1.6.RELEASE","3.0.0.ALPHA01","3.0.0.ALPHA02","3.0.0.ALPHA03","3.0.0.BETA01","3.0.0.BETA02","3.0.0.BETA03","3.0.0.RELEASE","3.0.1.RELEASE","3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.2.RELEASE","3.0.3.RELEASE","3.0.4.RELEASE","3.0.5.RELEASE","3.0.6.RELEASE","3.0.7.RELEASE","3.0.8.RELEASE","3.0.9.RELEASE","m1"],"fixed":["3.0.15.RELEASE-rhlw-00009"],"provider":"osv","source":"RHLW-2026-e0e5640c50ceea84","relation":"upstream"}],"affected_other":[{"ecosystem":"CVE","package":"thymeleaf/org.thymeleaf:thymeleaf-spring5","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"},{"ecosystem":"CVE","package":"thymeleaf/org.thymeleaf:thymeleaf-spring6","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"},{"ecosystem":"CVE","package":"thymeleaf/thymeleaf","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["1.0.0","1.0.0-beta1","1.0.0-beta2","1.0.0-beta3","1.0.0-beta4","1.0.0-beta5","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","2.0.0","2.0.0-beta1","2.0.0-beta2","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0-beta1","2.1.0-beta2","2.1.0-m1","2.1.0-m2","2.1.0-m3","2.1.0.RELEASE","2.1.1.RELEASE","2.1.2.RELEASE","2.1.3.RELEASE","2.1.4.RELEASE","2.1.5.RELEASE","2.1.6.RELEASE","3.0.0.ALPHA01","3.0.0.ALPHA02","3.0.0.ALPHA03","3.0.0.BETA01","3.0.0.BETA02","3.0.0.BETA03","3.0.0.RELEASE","3.0.1.RELEASE","3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.2.RELEASE","3.0.3.RELEASE","3.0.4.RELEASE","3.0.5.RELEASE","3.0.6.RELEASE","3.0.7.RELEASE","3.0.8.RELEASE","3.0.9.RELEASE","3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE","m1"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring5","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.3.M1","3.0.4.M2","3.0.5.M3","3.0.6.M4","3.0.7.RC1","3.0.8.RELEASE","3.0.9.RELEASE","3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring6","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"},{"ecosystem":"NVD","package":"thymeleaf:thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4"}]}],"fixed":["3.1.4"],"provider":"nvd","source":"CVE-2026-40478","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"affected","packages":["thymeleaf"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 7","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:7","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","thymeleaf","vertx-web-templ-thymeleaf"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","thymeleaf","vertx-web-templ-thymeleaf"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","spring-boot-starter-thymeleaf","thymeleaf","thymeleaf-extras-java8time","thymeleaf-spring5","vertx-web-templ-thymeleaf"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.28","cpe":"cpe:/a:redhat:openshift_devspaces:3.28::el9","status":"fixed","packages":["devspaces/openvsx-rhel9","devspaces/pluginregistry-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:21772"],"provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.28","cpe":"cpe:/a:redhat:openshift_devspaces:3.28::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"affected","packages":["spring-boot-starter-thymeleaf","thymeleaf-extras-java8time","thymeleaf-spring5"],"package_count":3,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"affected","packages":["thymeleaf"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"not_affected","packages":["camel-thymeleaf","thymeleaf"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-40478"}],"records":[{"provider":"osv","source_id":"RHLW-2026-e0e5640c50ceea84","relation":"upstream","url":"https://osv.dev/vulnerability/RHLW-2026-e0e5640c50ceea84","license":"CC-BY-4.0","published_at":"2026-10-21T19:19:23Z","modified_at":"2026-11-06T19:30:03.870744Z","summary":"Lightwell Security Advisory: thymeleaf 3.0.15.RELEASE-rhlw-00009","details":"Red Hat Lightwell has released org.thymeleaf:thymeleaf 3.0.15.RELEASE-rhlw-00009 with backported fixes for CVE-2026-40477, CVE-2026-40478, and CVE-2026-41901.\n\nCVE-2026-40477: Improper restriction of the scope of accessible objects in Thymeleaf expressions\n\nCVE-2026-40478: Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf\n\nCVE-2026-41901: Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions\n\nThis patched artifact is a drop-in replacement for org.thymeleaf:thymeleaf 3.0.15.RELEASE-rhlw-00009 from Maven Central.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"RHLW-2026-e0e5640c50ceea84"}],"affected":[{"ecosystem":"Red Hat Lightwell:Maven","package":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.15.RELEASE-rhlw-00009"}]}],"versions":["1.0.0","1.0.0-beta1","1.0.0-beta2","1.0.0-beta3","1.0.0-beta4","1.0.0-beta5","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","2.0.0","2.0.0-beta1","2.0.0-beta2","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0-beta1","2.1.0-beta2","2.1.0-m1","2.1.0-m2","2.1.0-m3","2.1.0.RELEASE","2.1.1.RELEASE","2.1.2.RELEASE","2.1.3.RELEASE","2.1.4.RELEASE","2.1.5.RELEASE","2.1.6.RELEASE","3.0.0.ALPHA01","3.0.0.ALPHA02","3.0.0.ALPHA03","3.0.0.BETA01","3.0.0.BETA02","3.0.0.BETA03","3.0.0.RELEASE","3.0.1.RELEASE","3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.2.RELEASE","3.0.3.RELEASE","3.0.4.RELEASE","3.0.5.RELEASE","3.0.6.RELEASE","3.0.7.RELEASE","3.0.8.RELEASE","3.0.9.RELEASE","m1"],"fixed":["3.0.15.RELEASE-rhlw-00009"],"provider":"osv","source":"RHLW-2026-e0e5640c50ceea84","relation":"upstream"}],"product_status":[],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40477.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:21772"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-40477"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40477.json"},{"type":"ADVISORY","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-r4v4-5mwr-2fwr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40477"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r4v4-5mwr-2fwr"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40478.json"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-40478"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40478.json"},{"type":"ADVISORY","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xjw8-8c5c-9r79"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41901.json"},{"type":"ADVISORY","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-c9ph-gxww-7744"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41901"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c9ph-gxww-7744"}]},{"provider":"cvelistv5","source_id":"CVE-2026-40478","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-40478","license":"CC-BY-4.0","published_at":"2026-04-17T21:57:01.56Z","modified_at":"2026-08-18T12:05:25.573Z","summary":"Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-40478"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-40478"}],"affected":[{"ecosystem":"CVE","package":"thymeleaf/org.thymeleaf:thymeleaf-spring5","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"},{"ecosystem":"CVE","package":"thymeleaf/org.thymeleaf:thymeleaf-spring6","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"},{"ecosystem":"CVE","package":"thymeleaf/thymeleaf","versions":["< 3.1.4.RELEASE"],"provider":"cvelistv5","source":"CVE-2026-40478","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79"}]},{"provider":"nvd","source_id":"CVE-2026-40478","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478","severity":[],"affected":[{"ecosystem":"NVD","package":"thymeleaf:thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4"}]}],"fixed":["3.1.4"],"provider":"nvd","source":"CVE-2026-40478","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-xjw8-8c5c-9r79","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xjw8-8c5c-9r79","license":"CC-BY-4.0","published_at":"2026-04-15T19:46:23Z","modified_at":"2026-05-05T16:12:18.897503Z","summary":"Improper neutralization of specific syntax patterns for unauthorized expressions in Thymeleaf","details":"### Impact\nA 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).\n\n### Patches\nThis has been fixed in Thymeleaf 3.1.4.RELEASE.\n\n### Workarounds\nNo 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.\n\n### Credits\nThanks to Dawid Bakaj (VIPentest.com) for responsible disclosure.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GHSA-xjw8-8c5c-9r79"}],"affected":[{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["1.0.0","1.0.0-beta1","1.0.0-beta2","1.0.0-beta3","1.0.0-beta4","1.0.0-beta5","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","2.0.0","2.0.0-beta1","2.0.0-beta2","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0-beta1","2.1.0-beta2","2.1.0-m1","2.1.0-m2","2.1.0-m3","2.1.0.RELEASE","2.1.1.RELEASE","2.1.2.RELEASE","2.1.3.RELEASE","2.1.4.RELEASE","2.1.5.RELEASE","2.1.6.RELEASE","3.0.0.ALPHA01","3.0.0.ALPHA02","3.0.0.ALPHA03","3.0.0.BETA01","3.0.0.BETA02","3.0.0.BETA03","3.0.0.RELEASE","3.0.1.RELEASE","3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.2.RELEASE","3.0.3.RELEASE","3.0.4.RELEASE","3.0.5.RELEASE","3.0.6.RELEASE","3.0.7.RELEASE","3.0.8.RELEASE","3.0.9.RELEASE","3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE","m1"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring5","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["3.0.10.RELEASE","3.0.11.RELEASE","3.0.12.RELEASE","3.0.13.RELEASE","3.0.14.RELEASE","3.0.15.RELEASE","3.0.3.M1","3.0.4.M2","3.0.5.M3","3.0.6.M4","3.0.7.RC1","3.0.8.RELEASE","3.0.9.RELEASE","3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"},{"ecosystem":"Maven","package":"org.thymeleaf:thymeleaf-spring6","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.4.RELEASE"}]}],"versions":["3.1.0.M1","3.1.0.M2","3.1.0.M3","3.1.0.RC1","3.1.0.RC2","3.1.0.RELEASE","3.1.1.RELEASE","3.1.2.RELEASE","3.1.3.RELEASE"],"fixed":["3.1.4.RELEASE"],"provider":"osv","source":"GHSA-xjw8-8c5c-9r79","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478"},{"type":"PACKAGE","url":"https://github.com/thymeleaf/thymeleaf"}]},{"provider":"redhat-vex","source_id":"CVE-2026-40478","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-40478","license":"CC-BY-4.0","published_at":"2026-04-17T21:57:01.56Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"thymeleaf: Thymeleaf: Server-Side Template Injection via expression execution bypass","details":"A flaw was found in Thymeleaf, a server-side Java template engine. An unauthenticated remote attacker can exploit this vulnerability by providing unvalidated user input to the template engine. This bypasses existing security mechanisms, allowing for the execution of unauthorized expressions and leading to Server-Side Template Injection (SSTI).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-40478"},{"type":"Red Hat","score":"Important","source":"CVE-2026-40478"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"affected","packages":["thymeleaf"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 7","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:7","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","thymeleaf","vertx-web-templ-thymeleaf"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","thymeleaf","vertx-web-templ-thymeleaf"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["smallrye-mutiny-vertx-web-templ-thymeleaf","spring-boot-starter-thymeleaf","thymeleaf","thymeleaf-extras-java8time","thymeleaf-spring5","vertx-web-templ-thymeleaf"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.28","cpe":"cpe:/a:redhat:openshift_devspaces:3.28::el9","status":"fixed","packages":["devspaces/openvsx-rhel9","devspaces/pluginregistry-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:21772"],"provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.28","cpe":"cpe:/a:redhat:openshift_devspaces:3.28::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"affected","packages":["spring-boot-starter-thymeleaf","thymeleaf-extras-java8time","thymeleaf-spring5"],"package_count":3,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"affected","packages":["thymeleaf"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-40478"},{"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","cpe":"cpe:/a:redhat:camel_spring_boot:4","status":"not_affected","packages":["camel-thymeleaf","thymeleaf"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-40478"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40478.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-40478"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459349"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-40478"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478"},{"type":"WEB","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79"}]}],"references":[{"type":"WEB","url":"https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-xjw8-8c5c-9r79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478"},{"type":"PACKAGE","url":"https://github.com/thymeleaf/thymeleaf"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40478.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-40478"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2459349"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-40478"}],"sources":[{"provider":"osv","source_id":"RHLW-2026-e0e5640c50ceea84","url":"https://osv.dev/vulnerability/RHLW-2026-e0e5640c50ceea84","license":"CC-BY-4.0","modified_at":"2026-11-06T19:30:03.870744Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-40478","url":"https://www.cve.org/CVERecord?id=CVE-2026-40478","license":"CC-BY-4.0","modified_at":"2026-08-18T12:05:25.573Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-40478","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40478","relation":"self"},{"provider":"osv","source_id":"GHSA-xjw8-8c5c-9r79","url":"https://osv.dev/vulnerability/GHSA-xjw8-8c5c-9r79","license":"CC-BY-4.0","modified_at":"2026-05-05T16:12:18.897503Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-40478","url":"https://access.redhat.com/security/cve/CVE-2026-40478","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
