# Hono CSRF middleware can be bypassed using crafted Content-Type header

Advisory record · `GHSA-rpfr-3m35-5vx5`

- **Identifiers:** `GHSA-rpfr-3m35-5vx5` · `CVE-2024-43787`
- **State:** Confirmed
- **Severity:** CVSS 5.0 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-352](https://cwe.mitre.org/data/definitions/352.html)
- **Tags:** [Cross-site request forgery (CSRF)](https://agentprime.io/advisories/tag/csrf.md)
- **Published:** 22 Aug 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Aug 2024, 16:41 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `hono` (npm): affected `<4.5.8`; fixed in `4.5.8`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.0 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 22 Aug 2024, 07:04 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5)

## Sources

- [GitHub Advisory Database: GHSA-rpfr-3m35-5vx5](https://github.com/advisories/GHSA-rpfr-3m35-5vx5)
- [OSV: GHSA-rpfr-3m35-5vx5](https://osv.dev/vulnerability/GHSA-rpfr-3m35-5vx5)
- <https://github.com/honojs/hono/security/advisories/GHSA-rpfr-3m35-5vx5>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43787>
- <https://github.com/honojs/hono/commit/41ce840379516410dee60c783142e05bb5a22449>
- <https://github.com/honojs/hono>
- <https://github.com/honojs/hono/blob/b0af71fbcc6dbe44140ea76f16d68dfdb32a99a0/src/middleware/csrf/index.ts#L16-L17>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-rpfr-3m35-5vx5>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rpfr-3m35-5vx5/>. Everything for agents: <https://agentprime.io/llms.txt>.
