CVE-2024-23340
JavaScript vulnerability analysis and mitigation

Overview

@hono/node-server, an adapter for running Hono applications on Node.js, contains a vulnerability (CVE-2024-23340) related to URL path handling. Since version 1.3.0, the package has used its own Request object with unexpected URL behavior when handling double dots (..) in paths. The vulnerability affects versions 1.3.0 to 1.4.1 (excluding 1.4.1) and was disclosed on January 22, 2024 (GitHub Advisory).

Technical details

The vulnerability stems from the Request object's handling of double dots (..) in URLs. In the standard API, when a URL contains double dots, the Request object returns a resolved path. However, @hono/node-server's Request implementation does not resolve these double dots, returning unresolved paths like 'http://localhost/static/../foo.txt' instead of the expected resolved path 'http://localhost/foo.txt'. This behavior particularly affects the serveStatic functionality. The vulnerability has been assigned a CVSS v3.1 score of 5.3 (Medium) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (GitHub Advisory).

Impact

The vulnerability can lead to security issues when using the serveStatic functionality, potentially exposing sensitive information. However, the impact is mitigated in modern web browsers and recent versions of curl, as they resolve double dots on the client side. Problems may only occur when accessed by clients that do not perform path resolution (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 1.4.1 of @hono/node-server. As a temporary workaround, users are advised not to use the serveStatic functionality if they cannot update to the patched version (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management