CVE-2026-111757: Hono `serveStatic` Decodes The Request Path Vulnerability

MODERATE
Advisory Identifier: GHSA-5r4p-p66f-jhc7
CVSS 5.3
CWE-174
Published
Advisory Summary

CVE-2026-111757 is a MODERATE (CVSS 5.3) `servestatic` decodes the request path vulnerability (CWE-174: Double Decoding of the Same Data) affecting Hono libraries in the npm ecosystem. The issue involves `servestatic` decodes the request path a second time, leading to bypass of middleware on static paths. Remediation is available by upgrading affected packages to version 4.13.11.

CVE-2026-111757 at a Glance

CVE Identifier CVE-2026-111757
GHSA Identifier GHSA-5r4p-p66f-jhc7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-174: Double Decoding of the Same Data
Affected Product Hono
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-111757

To remediate this vulnerability, upgrade all affected Hono dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

hono fixed: 4.13.11
npm install hono@4.13.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls hono

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-111757, inspect your project dependencies using npm:

npm ls hono

Analyze the terminal output to locate any version of Hono in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.13.11), your application is affected.

Note: The npm ls hono command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-174: Double Decoding of the Same Data, where the product decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations. In Hono, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary `serveStatic` decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix. ### Details Hono decodes the request path once before routing. `serveStatic` decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it. ### Impact An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by `serveStatic`. Applications that serve only public files are not affected.

CVE-2026-111757 Affected Hono Versions

1 component(s)
Fixed Versions:
4.13.11
Product / Package Ecosystem Affected Versions Fixed Version
hono
npm
≥ 4.12.4
< 4.13.11
4.13.11

References

Frequently Asked Questions

What is CVE-2026-111757?
CVE-2026-111757 is a security vulnerability in Hono involving `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths under CWE-174: Double Decoding of the Same Data.
Which Hono versions are affected?
Affected versions include releases prior to 4.13.11 across affected packages: hono.
What version fixes CVE-2026-111757?
Upgrading to 4.13.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hono affected?
Yes, hono is affected in releases prior to 4.13.11. Upgrade your dependency to 4.13.11 or later.
What is the CVSS score of CVE-2026-111757?
CVE-2026-111757 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-111757?
CVE-2026-111757 is classified under CWE-174: Double Decoding of the Same Data (The product decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations.).
How can I check npm dependencies for CVE-2026-111757?
Run the dependency tree command: 'npm ls hono'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5r4p-p66f-jhc7",
  "modified" : "2026-10-20T14:36:11Z",
  "published" : "2026-10-20T14:36:11Z",
  "aliases" : [ "CVE-2026-111757" ],
  "summary" : "Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths",
  "details" : "### Summary\n\n`serveStatic` decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.\n\n### Details\n\nHono decodes the request path once before routing. `serveStatic` decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.\n\n### Impact\n\nAn unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by `serveStatic`. Applications that serve only public files are not affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "hono"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.12.4"
      }, {
        "fixed" : "4.13.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/honojs/hono/security/advisories/GHSA-5r4p-p66f-jhc7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-111757"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/honojs/hono/commit/8b05c774ef1555c70f5ba5e2991b7e77cc3635cc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/honojs/hono"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/honojs/hono/releases/tag/v4.13.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-174" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T14:36:11Z",
    "nvd_published_at" : "2026-10-19T18:17:00Z"
  }
}