Skip to main content

Duplicate Advisory: Hono vulnerable to Vary Header Injection leading to potential CORS Bypass

0
Medium
Published: 07/01/2026 (07/01/2026, 00:34:02 UTC)
Source: GCVE Database
Product: hono

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected software

npmghsa
hono

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 20:02:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses