Description
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.
Published: 2026-09-30
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Local File Read via Directory Traversal
Action: Apply Patch
AI Analysis

Impact

Handlebars.java prior to version 4.5.5 has a directory traversal flaw that permits an attacker to read files outside the intended template directory. The vulnerability arises in Spring MVC applications that use a file: prefix and allow request‑derived view names. Percent‑encoded traversal sequences such as %2e%2e/ bypass both the view‑resolver containment check and the template loader containment logic, enabling arbitrary local file reads. This can expose sensitive configuration, source code, or other files present on the server hosting the application.

Affected Systems

The bug exists in the core handlebars.java library for all releases earlier than 4.5.5. It also affects the handlebars‑springmvc bridge in versions 4.5.3 and 4.5.4 when used with a file: template prefix. The vulnerability is exploitable in Spring MVC applications that resolve view names directly from request parameters, allowing manipulation of the view name to read files beyond the configured template base directory.

Risk and Exploitability

The CVSS score is 7.5, indicating a high severity local impact. While no EPSS score is available, the fact that the flaw can be exercised only within a running servlet container and requires the ability to craft a URL targeting the application suggests a moderate likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, but an attacker with network access to the application or the capability to manipulate URLs can retrieve any file readable by the application process. The attack vector is local to the application server and relies on a crafted request containing percent‑encoded traversal characters.

Generated by OpenCVE AI on September 30, 2026 at 07:29 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to handlebars.java version 4.5.5 or later and to handlebars‑springmvc 4.5.5 or later if available.
  • Review and modify the Spring MVC configuration to avoid using request‑derived view names with a "file:" prefix; instead, use a fixed base directory and validate view names against a whitelist.
  • Restrict the template loader’s file system paths by setting the prefix to a dedicated, non‑sensitive directory and removing file: access from the classpath.

Generated by OpenCVE AI on September 30, 2026 at 07:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 30 Sep 2026 03:15:00 +0000

Type Values Removed Values Added
First Time appeared Jknack
Jknack handlebars.java
Vendors & Products Jknack
Jknack handlebars.java

Wed, 30 Sep 2026 01:30:00 +0000

Type Values Removed Values Added
Description 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.
Weaknesses CWE-24
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Jknack Handlebars.java
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-30T17:21:46.603Z

Reserved: 2026-09-30T00:55:19.173Z

Link: CVE-2026-103088

cve-icon Vulnrichment

Updated: 2026-09-30T17:15:51.896Z

cve-icon NVD

Status : Deferred

Published: 2026-09-30T02:16:57.203

Modified: 2026-09-30T18:18:15.493

Link: CVE-2026-103088

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T07:30:17Z

Weaknesses
  • CWE-24

    Path Traversal: '../filedir'