CVE-2026-55760: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jknack handlebars.java
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.
AI Analysis
Technical Summary
Handlebars.java versions before 4.5.2 are vulnerable to a path traversal issue (CWE-22) when applications pass user-controlled input to Handlebars.compile() using FileTemplateLoader or ClassPathTemplateLoader. This allows attackers to read arbitrary files by manipulating template names derived from URL path parameters, request parameters, or other user-controlled sources. The vulnerability is addressed in version 4.5.2.
Potential Impact
Exploitation of this vulnerability allows an attacker to read arbitrary files on the server, potentially exposing sensitive information. The CVSS score of 7.5 indicates a high severity with network attack vector, no privileges required, no user interaction, and high confidentiality impact but no integrity or availability impact.
Mitigation Recommendations
Upgrade handlebars.java to version 4.5.2 or later, where this path traversal vulnerability is fixed. No other mitigation is specified or required.
CVE-2026-55760: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jknack handlebars.java
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.
CVSS v3.1
Score 7.5high
Affected software
pkg:maven/com.github.jknack/handlebars.javaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Handlebars.java versions before 4.5.2 are vulnerable to a path traversal issue (CWE-22) when applications pass user-controlled input to Handlebars.compile() using FileTemplateLoader or ClassPathTemplateLoader. This allows attackers to read arbitrary files by manipulating template names derived from URL path parameters, request parameters, or other user-controlled sources. The vulnerability is addressed in version 4.5.2.
Potential Impact
Exploitation of this vulnerability allows an attacker to read arbitrary files on the server, potentially exposing sensitive information. The CVSS score of 7.5 indicates a high severity with network attack vector, no privileges required, no user interaction, and high confidentiality impact but no integrity or availability impact.
Mitigation Recommendations
Upgrade handlebars.java to version 4.5.2 or later, where this path traversal vulnerability is fixed. No other mitigation is specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-17T14:34:51.880Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4ea886c9d9e3dbe3a52519
Added to database: 07/08/2026, 19:44:06 UTC
Last enriched: 07/16/2026, 10:05:11 UTC
Last updated: 08/22/2026, 10:52:10 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.