CVE-2025-71381 Hono - Vary Header Injection in CORS Middleware
MediumCVSS 6.9
EPSS 0.29%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm hono | < 4.10.3 | 4.10.3 | Fixed |
| npm hono(npm) | < 4.10.3 | 4.10.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hono | < 4.10.3 | 4.10.3 |
| npm hono(npm) | < 4.10.3 | 4.10.3 |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2495425 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- GitHub Security Advisory (GHSA-q7jf-gf43-6x6p) vendor-advisory
- VulnCheck Advisory: Hono - Vary Header Injection in CORS Middleware third-party-advisory
- github.com patch
- github.com
- github.com product
- ENISA EUVD EUVD-2025-210393 third-party-advisory