CVE-2026-126344
Node Server cross-site request forgery via WebSocket origin bypass
A malicious site can open a WebSocket connection using the victim's cookies, then read and send messages.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 2.1.6 | @hono/node-server · -10 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-126344 divulgada · CVSS 5.4 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The @hono/node-server package, which runs Hono applications on Node.js, misreads the origin of certain WebSocket upgrade requests, so origin checks can pass for requests from other sites. An attacker can remotely, without logging in, get a victim to visit a malicious page that opens a WebSocket connection with the victim's cookies, then read and send messages.
Descripción original del registro (GitHub_M)
@hono/node-server allows running the Hono application on Node.js. From 2.0.0 until 2.1.6, the WebSocket upgrade path resolves a raw request-target beginning with // against a base URL built from the Host header, causing the WHATWG URL parser to treat the request-target as a network-path reference and replace the host in c.req.url. Routing still uses the local WebSocket path, so an application that compares the Origin header with the origin of c.req.url, including checks implemented with csrf(), compares an attacker's origin with itself and accepts the connection. A page on another site can consequently open a WebSocket with the victim's cookies and read and send messages when the application uses upgradeWebSocket and trusts the host in c.req.url. Ordinary HTTP requests are not affected. This issue is fixed in version 2.1.6.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@hono/node-server |
Corregida | 2.1.6 | -10 d | 2.1.8 no afectada |
2.1.6Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5https://github.com/honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94ed7cd01fhttps://github.com/honojs/node-server/releases/tag/v2.1.6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
