Path traversal in http4k ThymeleafTemplates lets attackers read files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.
Summary
http4k before 6.62.0.0-ee has a path traversal flaw (CWE-22) in its ThymeleafTemplates Caching and HotReload modes. Request-driven template selection lets the resolver open paths outside baseTemplateDir without containment checks. An unauthenticated remote attacker can read any file that the server process can read.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update http4k to 6.62.0.0-ee, the fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
- Fix · CNA http4k (http4k) Fixed in 6.62.0.0-ee
Timeline
- 2026-11-02 Threatist record created from CVE-2026-120316
- 2026-11-02 Alias added: GHSA-r83g-mhw3-hx4p
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Priority changed: MEDIUM → LOW
References
More http4k vulnerabilities
- TI-2024-36944 http4k has a potential XXE (XML External Entity Injection) vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-83683 Missing body integrity check in http4k Digest auth-int CVSS 4.0HIGH 8.2
- TI-2026-38700 http4k: Unbounded gzip decompression in `ServerFilters.GZip` / `RequestFilters.GunZip` allowed memory-exhaustion DoS CVSS 3.1HIGH 7.5
- TI-2026-39062 http4k: `DigestAuthProvider.verify` did not bind to request URI CVSS 3.1HIGH 8.1
- TI-2026-64972 http4k before 6.48.0.0 Digest Authentication Replay Protection Bypass CVSS 4.0HIGH 8.2
- TI-2026-64881 http4k before 6.48.0.0 Cookie Scoping Bypass via BasicCookieStorage CVSS 4.0HIGH 8.3
Sources
- CVE-2026-120316 · CVE Program
- CVE-2026-120316 · NVD
- FIRST EPSS
- GHSA-r83g-mhw3-hx4p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences