MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-126355

### 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`.

Properties

Summary
Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)
Severity
medium
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Epss score
0.00176
Cvss severity
MEDIUM
Cvss score
5.3
Retrieved at
2026-11-14T00:51:03+00:00
Ghsa published
2026-11-12T23:31:25Z
Source url
https://github.com/advisories/GHSA-46wx-v44x-9hh2
Ghsa updated
2026-11-12T23:31:26Z
Ghsa id
GHSA-46wx-v44x-9hh2
Last source
FIRST EPSS
Score
5.3
Cvss version
3.1
Cve id
CVE-2026-126355
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
First seen by Signal
2026-11-13T00:03:27+00:00
Name
CVE-2026-126355
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Related Entities (3)

AFFECTS (1)

→[Software]npm/hono

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

←[Software]npm/hono

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126355 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal