Skip to main content

Hono Cache Middleware CVE-2026-44457

MEDIUM
Use of Cache Containing Sensitive Information (CWE-524)
2026-05-09 https://github.com/honojs/hono GHSA-p77w-8qqv-26rm
5.3
CVSS 3.1 · Vendor: https://github.com/honojs/hono
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker sends HTTP request to user endpoint
  2. Delivery
    Middleware caches response with Vary: Authorization header
  3. Exploit
    Attacker sends second request as different user
  4. Execution
    Middleware serves cached first user's response
  5. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm hono fix: 4.12.18

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

Vendor (https://github.com/honojs/hono) PRIMARY 5.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 31 npm packages depend on hono (28 direct, 3 indirect)

Ecosystem-wide dependent count for version 4.12.18.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:npm/hono

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy