CVE-2024-23340
Last modified
CVE-2024-23340 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. @hono/node-server is an adapter that allows users to run Hono applications on Node.js. Since v1.3.0, @hono/node-server has used its own Request object with `url` behavior that is unexpected. EPSS estimates a 0.72% chance of exploitation in the next 30 days.
Description
@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Since v1.3.0, @hono/node-server has used its own Request object with `url` behavior that is unexpected. In the standard API, if the URL contains `..`, here called "double dots", the URL string returned by Request will be in the resolved path. However, the `url` in @hono/node-server's Request as does not resolve double dots, so `http://localhost/static/.. /foo.txt` is returned. This causes vulnerabilities when using `serveStatic`. Modern web browsers and a latest `curl` command resolve double dots on the client side, so this issue doesn't affect those using either of those tools. However, problems may occur if accessed by a client that does not resolve them. Version 1.4.1 includes the change to fix this issue. As a workaround, don't use `serveStatic`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hono | Node-Server | >= 1.3.0, < 1.4.1 |
References
- https://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359Exploit, Vendor Advisory
- https://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-23340?
How severe is CVE-2024-23340?
How do I fix CVE-2024-23340?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-23335MyBB is a free and open source forum software. The backup ma…4.7
- CVE-2024-23336MyBB is a free and open source forum software. The default l…5
- CVE-2024-23337jq is a command-line JSON processor. In versions up to and i…6.5
- CVE-2024-23338Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2024-23339hoolock is a suite of lightweight utilities designed to main…6.5
- CVE-2024-2334The Template Kit – Import plugin for WordPress is vulnerable…6.4
- CVE-2024-23341TuiTse-TsuSin is a package for organizing the comparative co…6.1
- CVE-2024-23342The `ecdsa` PyPI package is a pure Python implementation of …7.4
- CVE-2024-23344Tuleap is an Open Source Suite to improve management of soft…6.5
- CVE-2024-23345Nautobot is a Network Source of Truth and Network Automation…5.4
- CVE-2024-23346Pymatgen (Python Materials Genomics) is an open-source Pytho…7.8
- CVE-2024-23347Prior to v176, when opening a new project Meta Spark Studio …7.8
Are you affected by CVE-2024-23340?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
