{"cve":"CVE-2026-40477","nvd":{"published":"2026-04-17T22:16:33.500","modified":"2026-10-26T22:10:00.163","status":"Modified","description":"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 expression execution mechanisms. 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). This issue has ben fixed in version 3.1.4.RELEASE.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9.0},"cwes":["CWE-917","CWE-1336"],"references":["https://github.com/thymeleaf/thymeleaf/security/advisories/GHSA-r4v4-5mwr-2fwr","https://access.redhat.com/errata/RHSA-2026:21772","https://access.redhat.com/security/cve/CVE-2026-40477","https://bugzilla.redhat.com/show_bug.cgi?id=2459344","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40477.json"],"products":["thymeleaf:thymeleaf"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40477","score":0.00851,"percentile":0.57937,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-r4v4-5mwr-2fwr","url":"https://osv.dev/vulnerability/GHSA-r4v4-5mwr-2fwr","summary":"Improper restriction of the scope of accessible objects in Thymeleaf expressions","modified":"2026-05-05T16:10:40.722195Z","packages":[{"ecosystem":"Maven","name":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","ranges":["<3.1.4.RELEASE"],"fixed":["3.1.4.RELEASE"]},{"ecosystem":"Maven","name":"org.thymeleaf:thymeleaf-spring5","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring5","ranges":["<3.1.4.RELEASE"],"fixed":["3.1.4.RELEASE"]},{"ecosystem":"Maven","name":"org.thymeleaf:thymeleaf-spring6","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring6","ranges":["<3.1.4.RELEASE"],"fixed":["3.1.4.RELEASE"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}