{"answers":{"affected":"6 open source packages ship an affected version, including org.thymeleaf:thymeleaf, org.thymeleaf:thymeleaf-spring5 and org.thymeleaf:thymeleaf-spring6.","exploited":"There is no known exploitation of CVE-2026-41901 in the wild and no public exploit code.","fix":"Upgrade org.thymeleaf:thymeleaf to 3.1.5.RELEASE or later.","what":"CVE-2026-41901 is a critical code injection vulnerability in thymeleaf, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41901 and fix it if it is affected.\n\nWhat it is: CVE-2026-41901 is a critical code injection vulnerability in thymeleaf, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-41901 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.thymeleaf:thymeleaf (Maven): affected all versions; fixed in 3.1.5.RELEASE\n- org.thymeleaf:thymeleaf (Maven): affected all versions; fixed in 3.1.5.RELEASE\n- org.thymeleaf:thymeleaf-spring5 (Maven): affected all versions; fixed in 3.1.5.RELEASE\n- org.thymeleaf:thymeleaf-spring5 (Maven): affected all versions; fixed in 3.1.5.RELEASE\n- org.thymeleaf:thymeleaf-spring6 (Maven): affected all versions; fixed in 3.1.5.RELEASE\n- org.thymeleaf:thymeleaf-spring6 (Maven): affected all versions; fixed in 3.1.5.RELEASE\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41901/ (Markdown: https://insights.sbomify.com/CVE-2026-41901/index.md)","id":"CVE-2026-41901","markdown":"https://insights.sbomify.com/CVE-2026-41901/index.md","name":"CVE-2026-41901","record":{"aliases":["CLSA-2026-1788881357","CLSA-2026-1788887721","CLSA-2026-1789561134","CLSA-2026-1789577899","GHSA-c9ph-gxww-7744"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java template engine","requires_auth":"none","summary":"Attackers can achieve Server-Side Template Injection and execute arbitrary code if developers pass unsanitized input to sandboxed Thymeleaf contexts.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Thymeleaf is a server-side Java template engine for web and standalone environments. Prior to 3.1.5.RELEASE, a security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI). This vulnerability is fixed in 3.1.5.RELEASE.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-05-23","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-05-23T01:25:51Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2026-41901","stars":0,"title":" CVE-2026-41901"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Thymeleaf: Improper recognition of unauthorized syntax patterns in sandboxed Thymeleaf expressions","id":"CVE-2026-41901","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"FreeScout's user invitation hash never expires: permanent unauthenticated account takeover if invite link leaks","id":"CVE-2026-41902"},"packages":[{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf","purl":null,"source":"GHSA-c9ph-gxww-7744"},{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf","purl":"pkg:maven/org.thymeleaf/thymeleaf","source":"GHSA-c9ph-gxww-7744"},{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf-spring5","purl":null,"source":"GHSA-c9ph-gxww-7744"},{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf-spring5","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring5","source":"GHSA-c9ph-gxww-7744"},{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf-spring6","purl":null,"source":"GHSA-c9ph-gxww-7744"},{"ecosystem":"Maven","fixed":["3.1.5.RELEASE"],"introduced":["0"],"last_affected":[],"package":"org.thymeleaf:thymeleaf-spring6","purl":"pkg:maven/org.thymeleaf/thymeleaf-spring6","source":"GHSA-c9ph-gxww-7744"}],"prev":{"headline":"OpenLearnX has Critical Remote Code Execution Through Python Sandbox Escape via Code Execution Environment","id":"CVE-2026-41900"},"products":["thymeleaf"],"published":"2026-05-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-13","vendors":["thymeleaf"]},"summary":"Attackers can achieve Server-Side Template Injection and execute arbitrary code if developers pass unsanitized input to sandboxed Thymeleaf contexts.","url":"https://insights.sbomify.com/CVE-2026-41901/"}