CVE-2026-63490: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jknack handlebars.java
Description
A path traversal vulnerability exists in handlebars.java versions prior to 4.5.3. The issue arises from improper validation of attacker-controlled Spring MVC view names in the SpringTemplateLoader component, allowing remote unauthenticated attackers to read arbitrary files accessible to the JVM. This vulnerability is fixed in version 4.5.3.
CVSS v3.1
Score 7.5high
Affected software
jknack
handlebars.java
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Handlebars.java, a Java library for Mustache templates, prior to version 4.5.3, contains a path traversal vulnerability (CWE-22) in the SpringTemplateLoader class. The loader resolves Spring MVC view names influenced by attackers through Spring ResourceLoader without proper path containment validation. Specifically, when a view name uses a file: or classpath: URL ending with a fragment delimiter (#), the appended .hbs suffix is placed in the fragment, which is ignored by FileUrlResource.exists() and URL.openStream(). Consequently, HandlebarsViewResolver passes this attacker-controlled name to handlebars.compile(), enabling an unauthenticated remote attacker to read files accessible to the JVM if the application exposes a controller with a user-influenced view name. The vulnerability is addressed in version 4.5.3.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to read arbitrary files accessible to the JVM process running the application. This can lead to disclosure of sensitive information. The CVSS score is 7.5 (high severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact with no integrity or availability impact.
Mitigation Recommendations
Upgrade handlebars.java to version 4.5.3 or later, where this path traversal vulnerability is fixed. No other mitigations are indicated or required according to the available information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-16T21:49:52.068Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a871857acd9273b49c60d05
Added to database: 08/20/2026, 15:08:07 UTC
Last enriched: 09/10/2026, 23:47:13 UTC
Last updated: 10/04/2026, 16:08:40 UTC
Views: 68
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.