Duplicate Advisory: Hono vulnerable to Vary Header Injection leading to potential CORS Bypass
Hono versions before 4.10.3 have a vulnerability in their CORS middleware where the Vary header from incoming requests is copied into responses. This can allow attackers to inject arbitrary Vary header values, potentially causing cache key pollution and inconsistent CORS enforcement in shared cache or proxy environments. The issue is fixed in version 4.10.3.
AI Analysis
Technical Summary
Hono before version 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. Since the Vary header is a response header that should be controlled by the server, this behavior allows an attacker to supply arbitrary Vary header values that are reflected in the response. This can lead to cache key pollution and inconsistent enforcement of CORS policies in environments that use shared caches or proxies. The vulnerability is addressed by a fix in version 4.10.3.
Potential Impact
The vulnerability can cause cache key pollution and inconsistent CORS enforcement, which may lead to unauthorized cross-origin resource sharing in environments relying on shared caches or proxies. This could potentially allow attackers to bypass CORS restrictions, leading to limited confidentiality and integrity impacts as indicated by the CVSS vector (C:L/I:L/A:N).
Mitigation Recommendations
Upgrade Hono to version 4.10.3 or later, where this vulnerability is fixed. No other specific mitigations are indicated. Patch status is confirmed by the original advisory stating the fix is in 4.10.3.
Duplicate Advisory: Hono vulnerable to Vary Header Injection leading to potential CORS Bypass
Description
Hono versions before 4.10.3 have a vulnerability in their CORS middleware where the Vary header from incoming requests is copied into responses. This can allow attackers to inject arbitrary Vary header values, potentially causing cache key pollution and inconsistent CORS enforcement in shared cache or proxy environments. The issue is fixed in version 4.10.3.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Hono before version 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. Since the Vary header is a response header that should be controlled by the server, this behavior allows an attacker to supply arbitrary Vary header values that are reflected in the response. This can lead to cache key pollution and inconsistent enforcement of CORS policies in environments that use shared caches or proxies. The vulnerability is addressed by a fix in version 4.10.3.
Potential Impact
The vulnerability can cause cache key pollution and inconsistent CORS enforcement, which may lead to unauthorized cross-origin resource sharing in environments relying on shared caches or proxies. This could potentially allow attackers to bypass CORS restrictions, leading to limited confidentiality and integrity impacts as indicated by the CVSS vector (C:L/I:L/A:N).
Mitigation Recommendations
Upgrade Hono to version 4.10.3 or later, where this vulnerability is fixed. No other specific mitigations are indicated. Patch status is confirmed by the original advisory stating the fix is in 4.10.3.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cw3j-28qq-x3xh
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6ac00d27a43b0b3b89fb1498
Added to database: 10/02/2026, 19:59:35 UTC
Last enriched: 10/02/2026, 20:02:29 UTC
Last updated: 10/03/2026, 04:45:56 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.