Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 90%

CVE-2026-59895: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in honojs hono

0
Medium
VulnerabilityCVE-2026-59895cvecve-2026-59895cwe-79cwe-116
Published: 07/08/2026 (07/08/2026, 16:09:51 UTC)
Source: CVE Database V5
Vendor/Project: honojs
Product: hono

Description

A cross-site scripting (XSS) vulnerability exists in honojs hono versions from 4.0.0 up to but not including 4.12.27. The cx() function in hono/css composes class names from plain strings but marks them as already escaped without properly HTML-escaping input. This allows untrusted className values used in JSX class attributes during server-side rendering to inject arbitrary markup. The issue is fixed in version 4.12.27.

CVSS v3.1

Score 6.1medium

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

Affected software

hono
pkg:npm/hono
Affected versions
>=4.0.0 <4.12.27

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: 07/22/2026, 00:58:12 UTC

Technical Analysis

CVE-2026-59895 is a cross-site scripting vulnerability in the hono JavaScript web framework affecting versions >=4.0.0 and <4.12.27. The vulnerability arises because the cx() function in hono/css treats composed class names as already escaped without performing HTML escaping on input strings. This improper neutralization of input during web page generation allows attackers to inject arbitrary markup by breaking out of JSX class attributes during server-side rendering. The vulnerability is addressed in version 4.12.27.

Potential Impact

An attacker can exploit this vulnerability to inject arbitrary HTML or script code into web pages rendered by affected versions of hono, potentially leading to client-side code execution, data theft, or session hijacking. The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, user interaction required, and partial confidentiality and integrity impact.

Mitigation Recommendations

Upgrade to hono version 4.12.27 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the issue is fixed in 4.12.27.

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

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T16:40:07.983Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4e7ad4c9d9e3dbe36a7d72

Added to database: 07/08/2026, 16:29:08 UTC

Last enriched: 07/22/2026, 00:58:12 UTC

Last updated: 08/22/2026, 22:52:15 UTC

Views: 78

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