High severityNVD Advisory· Published Jun 17, 2026· Updated Jun 17, 2026
handlebars.java FileTemplateLoader Path Traversal
CVE-2026-55760
Description
Impact
Any application that passes user-controlled input to Handlebars.compile() using a FileTemplateLoader (or ClassPathTemplateLoader) is vulnerable to arbitrary file read. This is a realistic attack surface for web applications that use template names from URL path parameters, request parameters, or other user-controlled sources.
### Patches com.github.jknack:handlebars:4.5.2
Workarounds
Validate template name is derived from user input.
if (!file.getPath().startsWith(new File(prefix).getCanonicalPath())) {
throw new IOException("Path traversal attempt detected: " + location);
}
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.github.jknack:handlebarsMaven | < 4.5.2 | 4.5.2 |
Affected products
2- Range: <4.5.2
Patches
Vulnerability mechanics
References
2News mentions
0No linked articles in our index yet.