CVE-2026-118663
Mở trang đầy đủCVSS 5.3 MEDIUM
@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
Mô tả
Summary
serveStatic decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.
Details
Hono decodes the request path once before routing. serveStatic decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.
Impact
An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by serveStatic. Applications that serve only public files are not affected.
Điểm và phân loại
- CVSS
- 5.3 MEDIUM v3.1
- Nguồn điểm
- NVD
- Mức độ (theo nguồn)
- MEDIUM
- EPSS
- 0.35%
- CWE
- CWE-174
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Ảnh hưởng
| Package | Bản bị ảnh hưởng | Bản đã sửa |
|---|---|---|
npm @hono/node-server |
>= 1.19.10, < 2.1.3 |
2.1.3
|
Sản phẩm
- honojs node-server
Vì sao bị lọc
- CVSS 5.3 < 8.0 và không thuộc CISA KEV
Loại tác động
Không nhận ra loại tác động nào từ CWE, vector hay mô tả.
Dữ liệu riêng của nguồn
- CVE.org · Đơn vị cấp mã
- GitHub_M
- CVE.org · SSVC
- Tự động hoá được: yes · Khai thác: none · Tác động kỹ thuật: partial
- OSV.dev · ID
- GHSA-rmxm-3fg6-px4f
Tham khảo
- https://github.com/advisories/GHSA-rmxm-3fg6-px4f
- https://github.com/honojs/node-server/security/advisories/GHSA-rmxm-3fg6-px4f
- https://github.com/honojs/node-server/commit/982179278529d5673812116b042829f27794966f
- https://github.com/honojs/node-server/releases/tag/v2.1.3
- https://osv.dev/vulnerability/GHSA-rmxm-3fg6-px4f
- https://github.com/honojs/node-server