# CVE-2026-120316: http4k before 6.62.0.0-ee Path Traversal via ThymeleafTemplates Template Resolution

Status: published. Published: 2026-11-02. Updated: 2026-11-02.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- http4k / http4k (org.http4k/http4k-template-thymeleaf): ≥ 0; < 6.62.0.0-ee (affected, custom); 6.62.0.0-ee (unaffected, custom). Source: CNA: VulnCheck

## Severity and prioritization

- CVSS 4.0: 8.2 (high); CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N; source: CNA: VulnCheck

- CVSS 3.1: 5.9 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N; source: CNA: VulnCheck

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-22

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/http4k/http4k/security/advisories/GHSA-wq4x-r858-gmmj (CNA: VulnCheck; vendor-advisory)

- https://www.vulncheck.com/advisories/http4k-before-6.62.0.0-ee-path-traversal-via-thymeleaftemplates-template-resolution (CNA: VulnCheck; third-party-advisory)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2026-120316; retrieved 2026-11-02; source updated 2026-11-02

Revision: 2f3e24fbfc7044bcbeac6c2bd1c8cb4af67f2044cd569ccfbd41f8cd7622f29f

Canonical: https://y2.dev/cve/CVE-2026-120316