Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid signed JWT token
-
DeliveryCraft Authorization header with non-Bearer scheme (e.g., Basic)
-
ExploitSend request to Hono jwt/jwk-protected endpoint
-
ExecutionMiddleware skips scheme validation
-
PersistJWT cryptographic check passes
-
ImpactRoute access granted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The Hono application must use the built-in jwt or jwk middleware to protect one or more routes - applications not using these specific middleware components are unaffected. The attacker must possess a cryptographically valid JWT token accepted by the application's configured secret or JWKS endpoint; the vulnerability does not enable token forgery or signature bypass. The bypass is triggered by submitting any Authorization header whose scheme is not 'Bearer' but whose second segment is a valid JWT (e.g., 'Basic eyJ...', 'Token eyJ...'). AC:H in the CVSS vector explicitly encodes the requirement for a pre-obtained valid token. Applications with additional downstream scheme validation or API gateways enforcing strict Bearer requirements would not be susceptible to the bypass even if running a vulnerable Hono version. |
| Impact | The CVSS 4.8 Medium score with vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N is internally consistent with the vulnerability's realistic constraints. The High Attack Complexity (AC:H) is the critical limiting factor: exploitation is not opportunistic - the attacker must already possess a valid JWT token signed with the application's secret or trusted key material, which significantly narrows the attacker population. The impact is partial (C:L/I:L), with no availability impact and no scope change. No EPSS score was provided in the input data, so probability-based prioritization cannot be performed. The vulnerability is not in CISA KEV, and no public exploit code has been identified, indicating no observed mass exploitation. In practice, this is a protocol correctness flaw that matters most in environments where downstream systems or audit controls distinguish authentication schemes, or where defense-in-depth depends on strict Bearer enforcement. For typical deployments, the absence of token-forging capability substantially limits impact compared to a full authentication bypass. |
| Exploit ScenarioDerived | An attacker who holds a valid JWT token - for example, obtained from a prior authenticated session, a shared signing key environment, or a token issued by a related service - constructs an HTTP request to a Hono-protected endpoint with the Authorization header set to 'Basic <valid-JWT>' instead of 'Bearer <valid-JWT>'. The Hono jwt middleware, lacking scheme validation, extracts the token portion, verifies it cryptographically, finds it valid, and grants access. No public exploit code identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Hono's jwt and jwk middleware components fail to enforce the Bearer scheme in the Authorization header, allowing any two-part header value - such as 'Basic <token>' or 'Token <token>' - to pass JWT verification identically to a correctly formed Bearer request. All Hono releases prior to 4.12.21 on any supported JavaScript runtime are affected when these middlewares protect routes. No public exploit identified at time of analysis, and this is not listed in CISA KEV; real-world exploitation requires the attacker to already possess a valid, properly signed JWT.
RemediationAI
The primary fix is to upgrade Hono to version 4.12.21 or later, which enforces strict Bearer scheme validation in the jwt and jwk middlewares before proceeding to token verification. This fix version is confirmed by the vendor security advisory at https://github.com/honojs/hono/security/advisories/GHSA-f577-qrjj-4474. For teams unable to upgrade immediately, a targeted compensating control is to prepend a custom middleware layer that explicitly rejects any Authorization header whose scheme segment is not the literal string 'Bearer', returning a 401 before the jwt/jwk middleware is reached. This has minimal side effects for well-formed clients but adds a validation gate that closes the scheme-bypass path. No other workarounds are referenced in the available advisory data.
Affected VersionsENISA
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 lightweight, cross-runtime Web application framework for JavaScript, supporting Cloudflare Workers, Deno, Bun, Node.js, and other runtimes. Its jwt and jwk built-in middlewares are designed to protect routes by parsing the Authorization header, extracting the token, and verifying it cryptographically. The defect is that the middleware extracts the second segment of any two-part header value without first validating that the first segment is specifically the string 'Bearer'. CWE-285 (Improper Authorization) describes this root cause class precisely: the authorization decision proceeds on an incomplete check, omitting a mandatory scheme validation step. The CPE string cpe:2.3:a:honojs:hono:*:*:*:*:*:*:*:* reflects that all versions of the honojs/hono package across all environments are affected prior to the patched release.
Know when Hono gets its next vulnerability
- 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:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.21, the jwt and jwk middlewares do not verify that the Authorization header value uses theBearer scheme. Any two-part header value - regardless of the scheme name in the first position - proceeds to JWT verification. A request presenting a valid JWT under a non-Bearer scheme identifier (such as Basic or Token) is authenticated identically to a correctly formed Bearer request. This vulnerability is fixed in 4.12.21.
Blast Radius
ecosystem impact- 8 npm packages depend on hono (8 direct, 0 indirect)
Ecosystem-wide dependent count for version 4.12.21.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Improper authorization in Hono's JWT Auth Middleware (hono/jwt in the npm package 'hono', versions 1.1.0 through 4.10.1)
The adapter @hono/node-server allows you to run your Hono application on Node.js. Rated high severity (CVSS 7.5), this v
Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by
Quadratic-complexity denial of service in Hono's `languageDetector` middleware (versions 4.12.0-4.12.33) allows unauthen
Path prefix stripping in Hono's app.mount() API exposes mounted sub-applications to incorrect routing due to a raw-vs-de
Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.3),
@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Rated medium severity (CVSS 5.3),
Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.0),
Cross-user HTML disclosure in Hono's server-side rendering affects all applications using hono/jsx with memo()-wrapped c
Hono is a web framework written in TypeScript. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploita
Hono is a Web application framework that provides support for any JavaScript runtime. [CVSS 8.2 HIGH]
Hono versions before 4.11.4 allow JWT algorithm confusion attacks through improper algorithm validation in the JWK/JWKS
EUVD-2026-32927
GHSA-f577-qrjj-4474
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB