Hono Cache Middleware CVE-2026-44457
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker sends HTTP request to user endpoint
-
DeliveryMiddleware caches response with Vary: Authorization header
-
ExploitAttacker sends second request as different user
-
ExecutionMiddleware serves cached first user's response
-
ImpactAttacker receives first user's PII
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V3 - Web Frontend Security Cache-Control for sensitive pages
|
| Exploitation Conditions | The vulnerability requires two specific conditions to manifest: first, the application must use Hono's Cache Middleware on an endpoint that returns user-specific data; second, the response must declare variance via Vary: Authorization or Vary: Cookie headers but must not set Cache-Control: private (or other cache-control directives that already cause the middleware to skip caching). If Cache-Control: private is present, the middleware already skips caching regardless of this vulnerability. The vulnerability is limited to HTTP caching contexts where the middleware is active; endpoints without caching configuration are not affected. Additionally, the vulnerability only leaks data to subsequent different users making requests to the same endpoint within the cache TTL window - it does not enable cross-endpoint data disclosure. Non-default configurations that implement reverse proxies or additional caching layers may further constrain or expand the exposure. |
| Impact | This vulnerability presents moderate real-world risk despite a moderate CVSS score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L). The CVSS vector indicates network-accessible, low-complexity exploitation without authentication or user interaction, suggesting broad exposure. However, real-world impact depends critically on application behavior: the vulnerability only materializes when developers rely solely on Vary: Authorization or Vary: Cookie without also setting Cache-Control: private, which violates defense-in-depth caching practices. The information disclosure is limited to cached response bodies (Confidentiality:Low per CVSS), not code execution or availability impact. Exploitation is deterministic and not probabilistic - if an application meets the vulnerable conditions, any attacker can receive cached user data by making sequential requests. No EPSS score, POC status, or KEV listing is provided in the input data, preventing comparison of real-world exploitation signals. The vulnerability is not an authentication bypass but rather a caching logic flaw affecting applications that incorrectly assume Vary headers alone secure user-specific data. Priority should be elevated for applications serving sensitive user data (PII, financial records, medical information) via REST APIs, and reduced for those serving public or non-sensitive cached content. |
| Exploit ScenarioDerived | An attacker makes a request to a vulnerable Hono endpoint that returns user-specific data (e.g., /api/user/profile with Bearer token for User A). The response includes Vary: Authorization but not Cache-Control: private, causing it to be cached by the middleware. The attacker then makes a second request to the same endpoint with a different Bearer token for User B (or without authentication, depending on endpoint design). The middleware serves the cached response from User A's original request, disclosing User A's profile data to the attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 09, 2026
Hono's Cache Middleware incorrectly caches responses marked with Vary: Authorization or Vary: Cookie headers, allowing cached responses intended for one authenticated user to be served to subsequent requests from different users. This information disclosure vulnerability affects Hono versions prior to 4.12.18 when the middleware is deployed on endpoints returning user-specific data without also setting Cache-Control: private. No special attack complexity is required - remote unauthenticated attackers can trigger the vulnerability through sequential requests to affected endpoints.
RemediationAI
Upgrade Hono to version 4.12.18 or later to receive the vendor-released patch that adds Vary: Authorization and Vary: Cookie to the list of cache-skip signals. For applications unable to immediately upgrade, implement a compensating control by explicitly setting Cache-Control: private on all endpoints returning user-specific data, in addition to setting Vary headers. This ensures responses are cached only by private caches (browsers, clients) and not shared by intermediary caches, though it reduces caching benefits. Alternative mitigation: disable the Cache Middleware on endpoints that return per-user data until the patch is applied. See vendor advisory at https://github.com/honojs/hono/security/advisories/GHSA-p77w-8qqv-26rm for patch availability confirmation and deployment guidance.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hono is a Node.js web framework that includes a Cache Middleware component designed to cache HTTP responses. The vulnerability exists in the middleware's logic for determining which responses should be cached. According to RFC 9110 and RFC 9111, the Vary header signals that a response varies based on specific request headers, and when Authorization or Cookie headers are listed, it indicates the response is user-specific and should not be shared across different users. The Cache Middleware currently checks for Vary: * (wildcard), Cache-Control directives (private, no-store, no-cache), and Set-Cookie headers as cache-skip signals, but fails to recognize Vary: Authorization and Vary: Cookie as signals that a response must not be cached. The root cause is an incomplete implementation of HTTP caching semantics (CWE-524: Information Exposure Through Cache), where the middleware does not respect the full set of HTTP standards-defined signals for user-specific content.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Primary rating from Vendor (https://github.com/honojs/hono) · only source for this CVE.
CVSS VectorVendor: https://github.com/honojs/hono
DescriptionCVE.org
Summary
Cache Middleware does not skip caching for responses that declare per-user variance via Vary: Authorization or Vary: Cookie. As a result, a response cached for one authenticated user may be served to subsequent requests from different users.
Details
The Cache Middleware skips caching when a response carries Vary: *, certain Cache-Control directives (private, no-store, no-cache), or Set-Cookie. However, Vary: Authorization and Vary: Cookie - the standard signals defined in RFC 9110 / RFC 9111 to indicate per-user responses - are not treated as cache-skip reasons.
This issue arises when applications use the Cache Middleware on endpoints that return user-specific data and rely on Vary: Authorization or Vary: Cookie to scope the response per user, without also setting Cache-Control: private.
Impact
A user may receive a cached response that was originally generated for a different authenticated user. This may lead to:
- Disclosure of personally identifiable information or other user-specific data present in the response body
- Inconsistent or incorrect behavior in user-specific endpoints
This issue affects applications that use the Cache Middleware on endpoints whose responses vary by Authorization or Cookie and that do not also set Cache-Control: private.
Blast Radius
ecosystem impact- 31 npm packages depend on hono (28 direct, 3 indirect)
Ecosystem-wide dependent count for version 4.12.18.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
GHSA-p77w-8qqv-26rm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB