Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-71381 EUVD-2025-210393GHSA-cw3j-28qq-x3xhGHSA-q7jf-gf43-6x6p

Hono - Vary Header Injection in CORS Middleware

Published Jun 30, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

Description

Hono before 4.10.3 contains a flaw in its CORS middleware: when the origin is not set to "*", the middleware copies the Vary header from the incoming request into the response. Because Vary is a response header that should be managed by the server, an attacker can supply arbitrary Vary values that are reflected into the response, potentially causing cache key pollution and inconsistent CORS enforcement in environments that rely on shared caches or proxies.

Affected products

VendorProductAffectedFixed
Hono Hono < 4.10.3 4.10.3

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono < 4.10.3 4.10.3 GHSA-q7jf-gf43-6x6p

References