Skip to main content
EPSS 0.7%top 49%

CVE-2026-63490: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jknack handlebars.java

0
High
VulnerabilityCVE-2026-63490cvecve-2026-63490cwe-22cwe-23cwe-552
Published: 08/20/2026 (08/20/2026, 14:45:35 UTC)
Source: CVE Database V5
Vendor/Project: jknack
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

jknack

handlebars.java

Affected versions
<4.5.3
com.github.jknack/handlebars.java
pkg:maven/com.github.jknack/handlebars.java
Affected versions
<4.5.3

Run 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

AILast updated: 09/10/2026, 23:47:13 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses