CVE-2025-71381 Details
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.
A vulnerability exists in Hono versions prior to 4.10.2 in the CORS middleware. When the origin is not set to '*', the middleware improperly copies the Vary header from the request to the response. This flaw allows attackers to inject arbitrary Vary values, which can lead to cache key pollution and inconsistent CORS enforcement, particularly in environments that use shared caches or proxies.
Users are advised to update to Hono version 4.10.3 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p | [email protected] | AdvisoryRemedyVendor |
| https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-113 | Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Hono | < 4.10.2 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 29, 2026 | CVE Modified | [email protected] |
| Oct 12, 2026 | CVE Translated | [email protected] |
| Oct 5, 2026 | CVE Translated | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | [email protected] |
Volerion