Unrated severityNVD Advisory· Published Jun 30, 2026· Updated Jul 1, 2026
Hono - Vary Header Injection in CORS Middleware
CVE-2025-71381
Description
Hono before 4.10.2 (fixed in 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.
Patches
Vulnerability mechanics
References
2- github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6pmitrevendor-advisory
- www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middlewaremitrethird-party-advisory
News mentions
0No linked articles in our index yet.