Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-29045: CWE-177: Improper Handling of URL Encoding (Hex Encoding) in honojs hono

0
High
VulnerabilityCVE-2026-29045cvecve-2026-29045cwe-177
Published: Wed Mar 04 2026 (03/04/2026, 22:09:22 UTC)
Source: CVE Database V5
Vendor/Project: honojs
Product: hono

Description

CVE-2026-29045 is a high-severity vulnerability in the honojs web framework versions prior to 4. 12. 4. It arises from inconsistent URL decoding between the router and the serveStatic middleware, where decodeURI and decodeURIComponent are used respectively. This discrepancy allows attackers to bypass route-based middleware protections by encoding slashes (%2F) in URLs, enabling unauthorized access to protected static resources. The vulnerability does not require authentication or user interaction and can be exploited remotely over the network. Although no known exploits are reported in the wild yet, the issue has been patched in version 4. 12. 4. Organizations using vulnerable versions should upgrade immediately to prevent unauthorized data exposure.

AI-Powered Analysis

AILast updated: 03/04/2026, 22:32:38 UTC

Technical Analysis

CVE-2026-29045 is a vulnerability classified under CWE-177 (Improper Handling of URL Encoding) affecting the honojs web application framework prior to version 4.12.4. The root cause is an inconsistency in how URL encoding is handled between the router and the serveStatic middleware. Specifically, the router uses decodeURI, which does not decode encoded slashes (%2F), while serveStatic uses decodeURIComponent, which does decode these characters. This mismatch allows an attacker to craft URLs with encoded slashes that bypass route-based middleware protections (e.g., app.use('/admin/*', ...)) intended to restrict access to certain static resources. When such a crafted URL is processed, the router does not recognize the encoded slash as a path separator, thus allowing the request to pass middleware checks, but serveStatic decodes it and serves the protected file. This leads to unauthorized access to static resources that should be protected. The vulnerability is remotely exploitable without authentication or user interaction, making it a critical risk for confidentiality breaches. The issue was addressed and patched in hono version 4.12.4 by ensuring consistent decoding behavior between routing and static file serving components.

Potential Impact

The primary impact of CVE-2026-29045 is unauthorized disclosure of sensitive static resources that are intended to be protected by route-based middleware. This can lead to leakage of confidential information such as configuration files, private documents, or other sensitive assets hosted on the web server. Since the vulnerability does not affect data integrity or availability, the main concern is confidentiality compromise. Exploitation requires no authentication or user interaction and can be performed remotely, increasing the risk of widespread attacks. Organizations relying on honojs for web applications, especially those serving sensitive static content behind middleware protections, face significant risk of data exposure. This can result in regulatory compliance violations, reputational damage, and potential downstream attacks leveraging leaked information.

Mitigation Recommendations

The definitive mitigation is to upgrade all honojs instances to version 4.12.4 or later, where the inconsistent URL decoding issue is fixed. Until upgrade is possible, organizations should implement strict input validation and URL normalization to reject or sanitize requests containing encoded slashes (%2F) or other suspicious encodings that could bypass middleware protections. Additionally, consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block attempts to exploit this decoding inconsistency. Review and audit route-based middleware configurations to ensure they do not rely solely on path matching that can be circumvented by encoding tricks. Logging and monitoring access to sensitive static resources should be enhanced to detect anomalous access patterns. Finally, educate developers and security teams about the risks of inconsistent URL decoding and encourage secure coding practices in middleware and routing logic.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-03T17:50:11.243Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69a8afacd1a09e29cb7ac71d

Added to database: 3/4/2026, 10:18:20 PM

Last enriched: 3/4/2026, 10:32:38 PM

Last updated: 3/4/2026, 11:23:14 PM

Views: 4

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 in Console -> Billing 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