Security Vulnerability Report
中文
CVE-2026-24472 CVSS 5.3 MEDIUM

CVE-2026-24472

Published: 2026-01-27 20:16:23
Last Modified: 2026-02-04 15:32:15

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.11.7, Cache Middleware contains an information disclosure vulnerability caused by improper handling of HTTP cache control directives. The middleware does not respect standard cache control headers such as `Cache-Control: private` or `Cache-Control: no-store`, which may result in private or authenticated responses being cached and subsequently exposed to unauthorized users. Version 4.11.7 has a patch for the issue.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:* - VULNERABLE
Hono < 4.11.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-24472 PoC - Hono Cache Middleware Information Disclosure // This PoC demonstrates how private/authenticated responses can be cached const { Hono } = require('hono'); const { cache } = require('hono/cache'); const app = new Hono(); // Vulnerable: Cache middleware does not respect Cache-Control headers app.use('/api/*', cache({ origin: 'http://localhost:3000', cacheName: 'my-api-cache', waitFor: 1000, })); // Protected endpoint returning sensitive data // Should NOT be cached due to Cache-Control: private header app.get('/api/user/profile', (c) => { // Simulating authenticated request with private data const userData = { userId: '12345', email: '[email protected]', apiKey: 'sk-private-key-12345', sessionToken: 'sess_abc123xyz' }; c.header('Cache-Control', 'private, no-store'); return c.json(userData); }); // Attack scenario: // 1. Attacker sends authenticated request to /api/user/profile // 2. Server returns response with Cache-Control: private // 3. Due to bug, middleware caches the response // 4. Any subsequent request (even without auth) gets cached private data app.fire(); // Attacker can now fetch cached private data: // fetch('http://target.com/api/user/profile') // Returns cached user data including sensitive tokens

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-24472", "sourceIdentifier": "[email protected]", "published": "2026-01-27T20:16:22.950", "lastModified": "2026-02-04T15:32:14.550", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.11.7, Cache Middleware contains an information disclosure vulnerability caused by improper handling of HTTP cache control directives. The middleware does not respect standard cache control headers such as `Cache-Control: private` or `Cache-Control: no-store`, which may result in private or authenticated responses being cached and subsequently exposed to unauthorized users. Version 4.11.7 has a patch for the issue."}, {"lang": "es", "value": "Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.11.7, el Middleware de Caché contiene una vulnerabilidad de revelación de información causada por un manejo inadecuado de las directivas de control de caché HTTP. El middleware no respeta los encabezados de control de caché estándar como 'Cache-Control: private' o 'Cache-Control: no-store', lo que puede resultar en que respuestas privadas o autenticadas sean almacenadas en caché y posteriormente expuestas a usuarios no autorizados. La versión 4.11.7 tiene un parche para el problema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-524"}, {"lang": "en", "value": "CWE-613"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "4.11.7", "matchCriteriaId": "D0406A9F-E15B-452E-940A-ABF25EEAA871"}]}]}], "references": [{"url": "https://github.com/honojs/hono/commit/12c511745b3f1e7a3f863a23ce5f921c7fa805d1", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/honojs/hono/releases/tag/v4.11.7", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/honojs/hono/security/advisories/GHSA-6wqw-2p9w-4vw4", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}