Skip to main content

CVE-2026-39407

| EUVDEUVD-2026-20493 MEDIUM
Path Traversal (CWE-22)
2026-04-08 https://github.com/honojs/hono GHSA-wmmm-f939-6g9c
5.3
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents moderate real-world risk despite the moderate CVSS score of 5.3. The attack vector is network-based with low complexity and requires no authentication or user interaction, making exploitation trivial for any remote attacker. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L) confirms unauthenticated remote exploitation with limited confidentiality impact. The practical impact, however, is significant: it defeats application-layer access controls entirely, allowing attackers to bypass authorization middleware that developers may reasonably assume is enforcing security boundaries. The vulnerability is not a low-probability edge case but a fundamental design flaw affecting any Hono application combining serveStatic with route-based authorization. The existence of a vendor-released patch (v4.12.12) and the specific nature of the bypass (repeated slashes are a known fuzzing vector) suggest this issue has been independently discovered and prioritized. Organizations relying on Hono for access control should treat this as a priority remediation despite the moderate CVSS rating, as the authentication bypass nature elevates real-world severity beyond the score.

Exploit ScenarioDerived

An attacker targeting a Hono application protected by /admin/* middleware discovers that the application serves static files through serveStatic. By sending a request such as GET //admin/secret.txt, the router fails to match the path against the /admin/* authorization rule due to the leading double slash, while serveStatic normalizes the path and serves the protected file. No authentication is required, and the attack succeeds immediately, exposing sensitive configuration files, API keys, or other protected static assets. This simple path fuzzing technique requires minimal effort and no special tools.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 08, 2026

Middleware bypass in Hono's serveStatic allows unauthenticated remote attackers to access protected static files by using repeated slashes in request paths, exploiting inconsistent path handling between the routing layer and static file resolution. The vulnerability affects Hono applications that rely on route-based middleware for access control, enabling unauthorized disclosure of sensitive files. Vendor-released patch available in version 4.12.12.

RemediationAI

Upgrade Hono to version 4.12.12 or later, which includes a fix that rejects paths containing repeated slashes, ensuring consistent path normalization between the routing layer and serveStatic middleware. This fix prevents the middleware bypass by guaranteeing that paths with // patterns are either rejected outright or normalized before routing decisions are made. Apply the patch immediately to all applications using Hono with route-based access control on static files. See vendor advisory at https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c for detailed upgrade guidance.

Affected VersionsENISA

hono < 4.12.12

Affected Packages

npm hono fix: 4.12.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

Hono is a lightweight JavaScript web framework. The vulnerability stems from a path normalization inconsistency (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) where the routing engine and the serveStatic middleware interpret repeated forward slashes differently. The router may not match paths containing // patterns against wildcard routes like /admin/*, while the serveStatic handler resolves both normalized and non-normalized paths to the same file location. For example, a request to GET //admin/secret.txt bypasses the /admin/* middleware rule because the router does not match the path with leading double slashes, but serveStatic normalizes the path and serves the file. This occurs because path normalization happens at different stages of request processing, creating an authentication bypass window where protected resources become accessible.

Know when the next one hits your stack

  • 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

NVD PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch released
Apr 08, 2026 - 00:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 00:16 nvd
MEDIUM 5.3

DescriptionNVD

Summary

A path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path.

When route-based middleware (e.g., /admin/*) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass.

Details

The routing layer and serveStatic handle repeated slashes differently.

For example:

/admin/secret.txt => matches /admin/*
/admin//secret.txt => may not match /admin/*

However, serveStatic may interpret both paths as the same file location (e.g., admin/secret.txt) and return the file.

This inconsistency allows a request such as:

GET //admin/secret.txt

to bypass middleware registered on /admin/* and access protected files.

The issue has been fixed by rejecting paths that contain repeated slashes, ensuring consistent behavior between route matching and static file resolution.

Impact

An attacker can access static files that are intended to be protected by route-based middleware by using repeated slashes in the request path.

This can lead to unauthorized access to sensitive files under the static root.

This issue affects applications that rely on serveStatic together with route-based middleware for access control.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 67 npm packages depend on hono (50 direct, 17 indirect)

Ecosystem-wide dependent count for version 4.12.12.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

Related Vulnerabilities in serveStatic Path Traversal Vulnerabilities

View all 2

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