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

- Severity: High 8.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-11-02T02:01:14.357Z
- Modified: 2026-11-02T18:18:49.583Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- http4k http4k: before 6.62.0.0-ee (not affected: 6.62.0.0-ee)

## Every score

- VulnCheck: 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`
- 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`

## References

- <https://github.com/http4k/http4k/security/advisories/GHSA-wq4x-r858-gmmj> (vendor-advisory)
- <https://www.vulncheck.com/advisories/http4k-before-6.62.0.0-ee-path-traversal-via-thymeleaftemplates-template-resolution> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120316](https://www.cve.org/CVERecord?id=CVE-2026-120316), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120316](https://nvd.nist.gov/vuln/detail/CVE-2026-120316), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120316 · Whole record: https://cve.day/CVE-2026-120316.json · Rebuilt by cve.day 2026-11-25T22:59:48.121Z
