Path Traversal Affecting @hono/node-server package, versions >=1.3.0 <1.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-HONONODESERVER-6184775
  • published25 Jan 2024
  • disclosed23 Jan 2024
  • creditUnknown

Introduced: 23 Jan 2024

CVE-2024-23340  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade @hono/node-server to version 1.4.1 or higher.

Overview

@hono/node-server is a Node.js Adapter for Hono

Affected versions of this package are vulnerable to Path Traversal via the serveStatic function. An attacker can access restricted directories on the server by crafting a URL that includes directory traversal characters such as "..".

Note: Modern web browsers and a latest curl command resolve double dots on the client side, so it does not affect you if the user uses them. However, problems may occur if accessed by a client that does not resolve them.

CVSS Base Scores

version 3.1