Read the docs

Path traversal in http4k ThymeleafTemplates lets attackers read files

Priority LOW 35CWE-22Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00309 23rd percentileScored 2026-11-07
Fix Fixed http4k (http4k): 6.62.0.0-ee

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

VendorProductAffected versionsFixed inStatusSource
http4khttp4kbefore 6.62.0.0-ee6.62.0.0-eePatch availableCNA
  • http4k Vendorhttp4k Affected before 6.62.0.0-ee Fixed in 6.62.0.0-ee Patch available CNA

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

  1. 2026-11-02 Threatist record created from CVE-2026-120316
  2. 2026-11-02 Alias added: GHSA-r83g-mhw3-hx4p
  3. 2026-11-02 CISA SSVC decision points changed
  4. 2026-11-02 Priority changed: MEDIUM → LOW

References

  • 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
See all 8 →

Sources