Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hono/node-server
  4. ›
  5. GHSA-frvp-7c67-39w9

GHSA-frvp-7c67-39w9: Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)

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-frvp-7c67-39w9
  • github.com/honojs/node-server/commit/cd076e117cfe4cb8d31f9eb11d2e8f38a6cb8faf
  • github.com/honojs/node-server/releases/tag/v2.0.5
  • github.com/honojs/node-server/security/advisories/GHSA-frvp-7c67-39w9

Code Behaviors & Features

Detect and mitigate GHSA-frvp-7c67-39w9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.5

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 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/node-server/GHSA-frvp-7c67-39w9.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:18:12 +0000.