Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hono
  4. ›
  5. CVE-2026-54286

CVE-2026-54286: hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)

June 16, 2026 (updated July 21, 2026)

On Windows hosts, an encoded backslash (%5C) in the request path decodes to \, which the Windows path resolver treats as a separator. serve-static then resolves a single URL segment such as admin\secret.txt into a nested file under the root and serves it, letting an attacker read static files meant to be protected behind prefix-mounted middleware. Directory escape (..) remains blocked.

References

  • github.com/advisories/GHSA-wwfh-h76j-fc44
  • github.com/honojs/hono/security/advisories/GHSA-wwfh-h76j-fc44
  • nvd.nist.gov/vuln/detail/CVE-2026-54286

Code Behaviors & Features

Detect and mitigate CVE-2026-54286 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.12.25

Fixed versions

  • 4.12.25

Solution

Upgrade to version 4.12.25 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/hono/CVE-2026-54286.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:56 +0000.