CVE-2026-103088

Published Sep 30, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Jknack
Jknack handlebars.java
Vendors & Products Jknack
Jknack handlebars.java
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'}

Weaknesses
  • CWE-24

    Path Traversal: '../filedir'

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 30, 2026, 5:21 PM
Reserved
Sep 30, 2026, 12:55 AM
Status
Deferred
Published
Sep 30, 2026, 2:16 AM
Modified
Sep 30, 2026, 6:18 PM