http4k Thymeleaf template resolution can escape its template directory
The http4k-template-thymeleaf module before 6.62.0.0-ee can resolve a request-influenced template name outside its configured template directory. Applications using that pattern may disclose server-readable files. Fixed in 6.62.0.0-ee; CVSS v3.1 5.9 (medium).
- Vendor
- http4k
- Product
- http4k-template-thymeleaf (versions before 6.62.0.0-ee)
- CVSS
- 5.9
- EPSS (exploit probability)
- 0.4%
- Status
- patched
- Published
Is CVE-2026-120316 being exploited?
Not on any exploited-vulnerability catalog we track. CVE-2026-120316 was not on the CISA, ENISA or CIRCL exploited catalogs as of our 2026-11-23 snapshot. That can change quickly; check the write-up below for the latest reporting.
FIRST's EPSS model puts the probability of exploitation activity in the next 30 days at 0.4% (scored November 21, 2026).
- CISA KEV[ — ]
- ENISA EUVD (exploited)[ — ]
- CIRCL KEV[ — ]
Catalog snapshot 2026-11-23. Full cross-catalog view: /kev-comparison
The http4k-template-thymeleaf module’s Thymeleaf template resolver lacks a check that a resolved template stays within its configured template directory. According to the http4k advisory, exposure depends on an application allowing request-influenced data into its template selection. In that configuration, files readable by the server process may be disclosed. The advisory does not claim that every http4k application is exposed.
Affected versions: org.http4k:http4k-template-thymeleaf before 6.62.0.0-ee. Fixed version: 6.62.0.0-ee. Update the module and review whether request data can affect template selection. The advisory assigns CVSS v3.1 5.9 (medium). See the CVE record for the identifier and scoring details.