---
title: "GHSA-46wx-v44x-9hh2: Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)"
description: "Moderate severity. Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`). Affects hono; fixed in 4.13.16."
url: https://inlinr.com/advisories/GHSA-46wx-v44x-9hh2
lang: en
---

[Packages](https://inlinr.com/packages) / [hono](https://inlinr.com/packages/hono) / [Security](https://inlinr.com/packages/hono/security)

Moderate Vulnerability GHSA-46wx-v44x-9hh2 CVE-2026-126355 Published 12 Nov 2026

# Hono: \`csrf()\` does not check requests sent by hyperlink auditing (\`text/ping\`)

Your version 

Affected releases · [hono](https://inlinr.com/packages/hono)

- 4.x 4.0.0 – 4.13.15 Fixed in 4.13.16
- 3.x and older 0.0.1 – 3.12.12 No fix, no longer updated

On 4.x, the newest line:

```
npm install hono@4.13.16
```

Every release on a timeline

4.x 

1. Affected

4.0.0 – 4.13.15  
197 releases
2. Fixed

4.13.16 – 4.13.19  
4 releases, latest

3.x 

1. Affected

3.0.0 – 3.12.12  
92 releases

2.x 

1. Affected

2.0.0 – 2.7.8  
49 releases

1.x 

1. Affected

1.0.0 – 1.6.4  
29 releases

0.x 

1. Affected

0.0.1 – 0.5.10  
45 releases

416 stable releases of hono, oldest to newest, one row per major.

## What happens

Summary

`csrf()` validates a request only when its `Content-Type` is one of the three types an HTML form can send. Chromium's hyperlink auditing (`<a ping>`) sends a cross-origin POST with the user's cookies and the content type `text/ping`, which is not in that list. The middleware does not look at `Origin` or `Sec-Fetch-Site` for such a request, so it is passed to the handler.

Details

The middleware skips the origin check when the content type is not one that a form submission produces. The assumption was that any other content type requires a CORS preflight and therefore cannot be sent cross-origin with credentials. Hyperlink auditing is an exception: Chrome and Edge send the ping as a credentialed POST without a preflight, with a fixed body and `Content-Type: text/ping`.

A page on another origin can therefore trigger a POST to any URL of the application. The `csrf()` options for `origin` and `secFetchSite` do not change the outcome, because neither header is evaluated for the request.

The request body is fixed, so only actions whose effect does not depend on the body can be triggered. Firefox does not send pings by default. As with any CSRF, the user's cookie must be sent with the request, which with the default `SameSite=Lax` means a same-site origin or a cookie set with `SameSite=None`.

Impact

A user who visits a malicious page in Chrome or Edge while logged in to an application protected by `csrf()` can be made to send a state-changing request to that application, such as logging out, deleting a resource, or toggling a setting that is selected by the path or query string.

This issue affects applications that rely on `csrf()` as their CSRF protection and expose state-changing endpoints whose effect does not depend on the request body.

Workarounds

Reject requests with a `Content-Type` of `text/ping` in a middleware registered before `csrf()`, or set session cookies with `SameSite=Strict`.

## How it is exploited

Exploitable over the network, with no account and a user to do something.

- **Confidentiality**: none
- **Integrity**: high
- **Availability**: none

CVSS:3.1/​AV:N/​AC:H/​PR:N/​UI:R/​S:U/​C:N/​I:H/​A:N

## References

- [Reference](https://github.com/honojs/hono/security/advisories/GHSA-46wx-v44x-9hh2 "https://github.com/honojs/hono/security/advisories/GHSA-46wx-v44x-9hh2")  
github.com/honojs/hono/security/advisories/GHSA…
- [Fix commit](https://github.com/honojs/hono/commit/bf16471913b5199212dac33f5d170f94745dd26a "https://github.com/honojs/hono/commit/bf16471913b5199212dac33f5d170f94745dd26a")  
bf16471
- [Package](https://github.com/honojs/hono "https://github.com/honojs/hono")  
github.com/honojs/hono
- [Reference](https://github.com/honojs/hono/releases/tag/v4.13.16 "https://github.com/honojs/hono/releases/tag/v4.13.16")  
github.com/honojs/hono/releases/tag/v4.13.16

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
