CVE-2026-120316 http4k before 6.62.0.0-ee Path Traversal via ThymeleafTemplates Template Resolution
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-120316?
CVE-2026-120316 is a high-severity vulnerability in http4k, published on 2 Nov 2026.
Official description
http4k before 6.62.0.0-ee contains a path traversal vulnerability in ThymeleafTemplates Caching and HotReload that allows unauthenticated attackers to read files outside baseTemplateDir by supplying ../ segments in ViewModel.template() values. Attackers can influence request-driven template selection so Thymeleaf's FileTemplateResolver resolves escaped paths without containment checks, disclosing any file readable by the server process.
Weakness: CWE-22
Which versions are affected by CVE-2026-120316?
How do I fix CVE-2026-120316?
No fix has been published for CVE-2026-120316 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-120316 being exploited?
There is no known exploitation of CVE-2026-120316 in the wild and no public exploit code.
Sources
Also known as GHSA-r83g-mhw3-hx4p, GHSA-wq4x-r858-gmmj.