Skip to main content

Handlebars.java EUVDEUVD-2026-89555

| CVE-2026-103088 HIGH
Path Traversal: '../filedir' (CWE-24)
2026-09-30 mitre GHSA-2m6h-5wp5-qp66
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Spring MVC app using handlebars-springmvc with file: prefix
  2. Delivery
    Craft request with percent-encoded %2e%2e/ traversal as view name
  3. Exploit
    Encoded string bypasses view-resolver and loader containment checks
  4. Execution
    URL handler percent-decodes path, escapes template base
  5. Impact
    Read arbitrary files outside template directory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
Exploitation Conditions

Exploitation requires a Spring MVC application using handlebars-springmvc 4.5.3 or 4.5.4 that (1) is configured with a file: template location prefix (rather than the classpath default) AND (2) derives the Handlebars view name from untrusted request input. Both conditions must hold: without the file: prefix or without request-controlled view names, the percent-encoded %2e%2e/ traversal cannot reach or escape the template base directory. These non-default configuration requirements are the primary limiting factors; no authentication or user interaction is otherwise needed, and impact is limited to reading files (confidentiality) outside the template base directory.

Impact

This is a genuine, cleanly-defined vulnerability but its real-world priority is moderate and highly configuration-dependent. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5) describes remote, unauthenticated, low-complexity arbitrary file read with confidentiality-only impact - consistent with the CWE-24 path-traversal classification and the description's arbitrary-file-read outcome. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no public exploit identified at time of analysis and no evidence of active exploitation; the risk signals therefore rest entirely on the CVSS vector and vendor advisory rather than on observed exploitation. The AC:L/PR:N framing slightly overstates ease-of-attack because exploitation is gated by a specific non-default deployment (a Spring MVC app using handlebars-springmvc with a file: template prefix AND a request-derived view name); the raw vector does not capture that precondition, which is the main reason to treat this as medium rather than critical priority. This is a real, patchable bug worth remediating for affected deployments, not an inflated high-CVSS-but-no-real-risk issue, but it is narrower than the 7.5 suggests. Note the affected-component nuance: the root library is Handlebars.java (<4.5.5), but the actual bypass lives in handlebars-springmvc 4.5.3/4.5.4, an incomplete fix for CVE-2026-63490.

Exploit ScenarioDerived

A Spring MVC application uses handlebars-springmvc (4.5.3 or 4.5.4) configured with a file: template prefix and resolves view names from user-supplied request data. A remote unauthenticated attacker submits a percent-encoded traversal sequence such as %2e%2e/%2e%2e/etc/passwd as the view name; the view-resolver containment check sees only the raw encoded string and passes it, while the URL handler percent-decodes the path when opening the file, escaping the template base directory and returning arbitrary file contents. No public exploit code was provided, but the mechanism is straightforward given the described encode/decode mismatch.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 30, 2026

Directory traversal in Handlebars.java before 4.5.5 lets unauthenticated remote attackers read arbitrary files outside the configured template base directory in Spring MVC applications that use the handlebars-springmvc integration. The flaw specifically affects handlebars-springmvc 4.5.3 and 4.5.4, where the path-containment check added for CVE-2026-63490 validates template locations as raw percent-encoded strings while the template file is ultimately opened through a URL handler that percent-decodes the path, so a request-derived view name containing %2e%2e/ slips past both the view-resolver and loader-side checks. Exploitation is not confirmed in the wild and no public exploit code has been identified at time of analysis, but it requires two non-default conditions to hold simultaneously: a file: template location prefix and a Handlebars view name derived from untrusted request input, which keeps real-world priority moderate despite the 7.5 CVSS score. Impact is limited to confidentiality (arbitrary file read); integrity and availability are unaffected.

RemediationAI

Vendor-released patch: upgrade to Handlebars.java 4.5.5 (https://github.com/jknack/handlebars.java/releases/tag/v4.5.5), which fixes the raw-versus-decoded containment mismatch; the corresponding upstream change is commit f6ae3979917d05bef07f00befb4013ef00503660 and the advisory is at https://github.com/jknack/handlebars.java/security/advisories/GHSA-pvrx-3g7m-fpgv. Upgrade every module in lockstep (handlebars, handlebars-springmvc, and the cache/helper/jackson modules), since the commit bumps all poms to 4.5.5. If immediate upgrade is not possible, apply compensating controls that break the two required preconditions: switch the template location prefix away from file: to the default classpath: prefix so template resolution no longer touches the filesystem through a decoding URL handler (side effect: filesystem-based template hot-reload or externally mounted template directories stop working); or stop deriving Handlebars view names from untrusted request input, mapping request parameters to a fixed server-side allowlist of view names instead (side effect: any dynamic-template feature must be redesigned, and any unmapped view name returns an error). As a defense-in-depth measure, normalize and fully percent-decode candidate paths before validating containment, and run the application under an OS-level account whose read access is restricted to the template directory so a residual traversal cannot reach sensitive files such as configuration or credential stores; note this is containment, not a fix, and does not remove the underlying bug.

Affected VersionsENISA

handlebars.java 4.5.3 <4.5.5

Affected Packages

euvd handlebars_java fix: 4.5.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a classic path traversal of the form '../filedir' (CWE-24) arising from a canonicalization mismatch between two layers of Handlebars.java's template resolution stack. Handlebars.java is a Java port of the Handlebars templating language, and handlebars-springmvc adapts it to Spring MVC as a ViewResolver; when a controller returns a view name, the resolver builds a template location and hands it to a TemplateLoader. In versions 4.5.3 and 4.5.4, the containment fix introduced for CVE-2026-63490 compared the requested location against the configured base directory using the raw, still percent-encoded string, whereas the underlying URL handler that actually opens the template resource percent-decodes the path before resolving it. Encoding alone (%2e%2e/ instead of ../) therefore satisfied the string-level containment check while the decoded path escaped the base directory, defeating both the view-resolver guard and the loader-side guard in one step. The affected configuration is one where the template location uses a file: prefix rather than the default classpath prefix, since classpath resolution does not expose the same decoded filesystem semantics; the CPE record cpe:2.3:a:jknack:handlebars.java:*:*:*:*:*:*:*:* reflects that all releases prior to 4.5.5 carry the vulnerable code path. The CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N confirms the attack is network-reachable, low complexity, and unauthenticated, with a high confidentiality impact only.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Remote unauthenticated encode/decode-mismatch traversal is low-complexity once the required file: prefix and request-derived view name are configured; impact is arbitrary file read only, so C:H, I:N, A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Sep 30, 2026 - 02:01 EUVD
CVE Published
Sep 30, 2026 - 00:55 cve.org
HIGH 7.5

DescriptionCVE.org

Handlebars.java before 4.5.5 allows directory traversal. In handlebars-springmvc 4.5.3 and 4.5.4, the path-containment fix for CVE-2026-63490 validates template locations as raw percent-encoded strings, whereas the template file is opened through a URL handler that percent-decodes the path. In a Spring MVC application with a file: template prefix and a request-derived view name, a percent-encoded traversal such as %2e%2e/ bypasses both the view-resolver check and the loader-side containment and reads files outside the configured template base directory.

Technical POC Analysis

CWE-22 per the advisory's own weakness mapping (Improper Limitation of a Pathname to a Restricted Directory).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A directory traversal flaw in the Handlebars.java templating engine, shipped through the handlebars-springmvc integration in versions 4.5.3 and 4.5.4, could let an external party read files outside an application's designated template directory. Only Spring MVC applications that both point templates at a file:-based location and build view names from untrusted request input are exposed, so real-world reach is narrow, but a successful attack would silently leak configuration files, credentials, or source code. Leadership should care because the affected library is embedded directly in application code and no fixed release is available from the project today, meaning exposure must be reduced through configuration and code changes rather than a routine upgrade.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: eliminate the file: template location prefix and load templates from the classpath or a bundled resource root; never derive Handlebars view names directly from request input, instead mapping requests to a fixed allow-list of template names; percent-decode and canonicalize the resolved template path and reject anything that escapes the configured base directory; block or flag requests containing %2e%2e, %2f, or %5c in view-name parameters at the WAF or servlet filter layer; run the application under a least-privilege account with filesystem read access restricted to required directories; and alert on anomalous template parameter values in web logs.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Medium
Popular Java templating library, but affected path is Spring MVC integration only
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy