MEDIUM · CVSS 3.1 5.3 EPSS 0.2% · 7th percentile CWE-352

CVE-2026-126355: Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)

Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-46wx-v44x-9hh2

Summary

The `csrf()` middleware in Hono fails to validate requests with a `Content-Type` of `text/ping` sent by browser hyperlink auditing. Maintainers of applications built with Hono using `csrf()` protection should update their packages.

Who is affected

Affected deployments include applications utilizing Hono's `csrf()` middleware that expose state-changing endpoints relying on paths or query strings rather than request bodies. Attackers can leverage Chromium's hyperlink auditing feature (`<a ping>`) from another origin to trigger credentialed cross-origin POST requests, provided the user's cookies permit cross-origin inclusion such as `SameSite=None` or a same-site request context.

Exploitability

The vulnerability has a CVSS base score of 5.3 (Medium) with an attack vector requiring network access, high complexity, and user interaction (visiting a malicious page in a browser like Chrome or Edge). The EPSS score is very low at 0.002, and CISA KEV status is false.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm hono >= 0, < 4.13.16 4.13.16 npm install [email protected]

CVSS 3.1 vector

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

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityHigh
AvailabilityNone

FAQ

Which browsers are affected by this vulnerability?

Chromium-based browsers like Chrome and Edge are affected because they send hyperlink auditing pings as credentialed POST requests with `Content-Type: text/ping` without a CORS preflight. Firefox does not send pings by default.

Does this flaw allow attackers to control the request body?

No, the request body sent by hyperlink auditing is fixed, meaning only actions whose effect does not depend on the request body (such as relying on the path or query string) can be triggered.

Are all cookies vulnerable by default?

No, exploitation requires the user's cookie to be sent with the request. Under default `SameSite=Lax` rules, this typically requires a same-site origin or a cookie explicitly configured with `SameSite=None`.

Original advisory description
### 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`.

References

Source records: GHSA-46wx-v44x-9hh2 (OSV.dev) · EPSS by FIRST, 2026-11-21.