Intel

AIKIDO-2026-11189

hono is vulnerable to Path Traversal

CVE-2026-54286Published Jun 12, 2026
June 12, 2026

59

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

The serve-static middleware rejects dot-segment and double-separator paths but allowed a lone backslash in the decoded filename. On Windows the path resolver treats backslash as a separator, so a single URL segment containing an encoded backslash can resolve into a nested protected file. An unauthenticated attacker can read static files behind prefix-mounted guards without escaping the configured root. The guard now rejects any decoded path containing a backslash separator.

How do I fix this?

Upgrade the hono library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serve static files on Windows hosts using serve-static with prefix-mounted middleware guards.

Package

Versions

0.0.1 - 4.12.24

Fixed in 4.12.25

Background info

hono is vulnerable to Path Traversal in versions 0.0.1 - 4.12.24.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea