Description
Handlebars.java provides logic-less and semantic Mustache templates with Java. Prior to 4.5.2, applications that pass user-controlled input to Handlebars.compile() using FileTemplateLoader or ClassPathTemplateLoader are vulnerable to path traversal, allowing arbitrary file read through template names derived from URL path parameters, request parameters, or other user-controlled sources. This issue is fixed in version 4.5.2.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/jknack/handlebars.java/security/advisories/GHSA-r4gv-qr8j-p3pg
X_Refsource_Misc x_refsource_misc
https://github.com/jknack/handlebars.java/commit/d177cdee8b750385ca7a0d0f89f2d4be73e28f4e
X_Refsource_Misc x_refsource_misc
https://github.com/jknack/handlebars.java/releases/tag/v4.5.2
Scores
CVSS v3
7.5
EPSS
0.0042
EPSS Percentile
34.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (1)
jknack/handlebars.java
< 4.5.2
Published
Jul 08, 2026
Tracked Since
Jul 09, 2026