{"id":"CVE-2026-59895","aliases":["CLSA-2026-1793790161","GHSA-w62v-xxxg-mg59"],"summary":"Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility","published_at":"2026-07-08T16:09:51.273Z","modified_at":"2026-11-04T14:45:06.150464Z","products":[],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.003269999986514449,"percentile":0.26311999559402466,"date":"2026-11-19T00:00:00Z"},"priority":7.6,"details":"Hono is a Web application framework that provides support for any JavaScript runtime. From 4.0.0 before 4.12.27, cx() in hono/css composes class names from plain strings but marks the result as already escaped without HTML-escaping the input, allowing untrusted className values used in a JSX class attribute during server-side rendering to break out of the attribute and inject arbitrary markup. This issue is fixed in version 4.12.27.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"honojs/hono","versions":[">= 4.0.0, < 4.12.27"],"provider":"cvelistv5","source":"CVE-2026-59895","relation":"self"},{"ecosystem":"NVD","package":"hono:hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.12.27"}]}],"fixed":["4.12.27"],"provider":"nvd","source":"CVE-2026-59895","relation":"self"},{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.12.12-tuxcare.0"},{"fixed":"3.12.12-tuxcare.5"}]}],"versions":["3.12.12","3.12.12-tuxcare.1","3.12.12-tuxcare.2","3.12.12-tuxcare.3","3.12.12-tuxcare.4"],"fixed":["3.12.12-tuxcare.5"],"provider":"osv","source":"CLSA-2026-1793790161","relation":"self"},{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.26-tuxcare.0"},{"fixed":"4.12.26-tuxcare.1"}]}],"versions":["4.12.26"],"fixed":["4.12.26-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794668523","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.25-tuxcare.0"},{"fixed":"4.12.25-tuxcare.1"}]}],"versions":["4.12.25"],"fixed":["4.12.25-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794718925","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.16-tuxcare.0"},{"fixed":"4.12.16-tuxcare.2"}]}],"versions":["4.12.16","4.12.16-tuxcare.1"],"fixed":["4.12.16-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1794820786","relation":"upstream"},{"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.12.27"}]}],"fixed":["4.12.27"],"provider":"osv","source":"GHSA-w62v-xxxg-mg59","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-27/mcp-server-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1794668523","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1794668523","published_at":"2026-11-14T16:02:04Z","modified_at":"2026-11-14T19:15:05.427615Z","summary":"TuxCare security update for hono (3 CVEs)","details":"TuxCare rebuilt hono to address 3 CVEs. Fixed in 4.12.26-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.26-tuxcare.0"},{"fixed":"4.12.26-tuxcare.1"}]}],"versions":["4.12.26"],"fixed":["4.12.26-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794668523","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1794718925","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1794718925","published_at":"2026-11-15T06:02:06Z","modified_at":"2026-11-15T07:15:04.148465Z","summary":"TuxCare security update for hono (2 CVEs)","details":"TuxCare rebuilt hono to address 2 CVEs. Fixed in 4.12.25-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.25-tuxcare.0"},{"fixed":"4.12.25-tuxcare.1"}]}],"versions":["4.12.25"],"fixed":["4.12.25-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794718925","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1794820786","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1794820786","published_at":"2026-11-16T10:19:47Z","modified_at":"2026-11-16T15:00:05.834528Z","summary":"TuxCare security update for hono (14 CVEs)","details":"TuxCare rebuilt hono to address 14 CVEs. Fixed in 4.12.16-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.16-tuxcare.0"},{"fixed":"4.12.16-tuxcare.2"}]}],"versions":["4.12.16","4.12.16-tuxcare.1"],"fixed":["4.12.16-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1794820786","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-59895","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-59895","license":"CC-BY-4.0","published_at":"2026-07-08T16:09:51.273Z","modified_at":"2026-07-08T19:41:04.292Z","summary":"Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility","details":"Hono is a Web application framework that provides support for any JavaScript runtime. From 4.0.0 before 4.12.27, cx() in hono/css composes class names from plain strings but marks the result as already escaped without HTML-escaping the input, allowing untrusted className values used in a JSX class attribute during server-side rendering to break out of the attribute and inject arbitrary markup. This issue is fixed in version 4.12.27.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2026-59895"}],"affected":[{"ecosystem":"CVE","package":"honojs/hono","versions":[">= 4.0.0, < 4.12.27"],"provider":"cvelistv5","source":"CVE-2026-59895","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc"},{"type":"WEB","url":"https://github.com/honojs/hono/releases/tag/v4.12.27"}]},{"provider":"nvd","source_id":"CVE-2026-59895","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59895","severity":[],"affected":[{"ecosystem":"NVD","package":"hono:hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.12.27"}]}],"fixed":["4.12.27"],"provider":"nvd","source":"CVE-2026-59895","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1793790161","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1793790161","published_at":"2026-11-04T12:02:42Z","modified_at":"2026-11-04T14:45:06.150464Z","summary":"TuxCare security update for hono (1 CVE)","details":"TuxCare rebuilt hono to address 1 CVE. Fixed in 3.12.12-tuxcare.5.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.12.12-tuxcare.0"},{"fixed":"3.12.12-tuxcare.5"}]}],"versions":["3.12.12","3.12.12-tuxcare.1","3.12.12-tuxcare.2","3.12.12-tuxcare.3","3.12.12-tuxcare.4"],"fixed":["3.12.12-tuxcare.5"],"provider":"osv","source":"CLSA-2026-1793790161","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-w62v-xxxg-mg59","relation":"self","url":"https://osv.dev/vulnerability/GHSA-w62v-xxxg-mg59","license":"CC-BY-4.0","published_at":"2026-07-21T18:33:50Z","modified_at":"2026-09-10T03:51:12.371507Z","summary":"Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility","details":"### Summary\n\n`cx()` in `hono/css` composes class names from plain strings but marks the result as already-escaped without HTML-escaping the input. When the result is used as a JSX `class` attribute during server-side rendering, the value is written into the attribute unescaped, so untrusted input can break out of the `class` attribute and inject arbitrary markup, leading to Cross-Site Scripting (XSS).\n\n### Details\n\nBecause the composed value is treated as pre-escaped, the HTML attribute escaping normally applied to interpolated values is skipped, and characters such as `\"` pass through unescaped — allowing a value to terminate the attribute and add further attributes or elements. This arises when an application passes untrusted, user-controlled input as a class name to `cx()`, for example when merging a base class with an externally provided `className`.\n\n### Impact\n\nDuring server-side rendering, an attacker who controls a value passed to `cx()` can inject arbitrary HTML into the page, resulting in stored or reflected XSS in the victim's browser.\n\nThis may lead to:\n\n- Execution of attacker-controlled script in the victim's browser session.\n- Session hijacking, credential theft, or actions performed on behalf of the victim.\n\nApplications are affected only if they render JSX server-side and pass untrusted input as a class name to `cx()`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GHSA-w62v-xxxg-mg59"}],"affected":[{"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.12.27"}]}],"fixed":["4.12.27"],"provider":"osv","source":"GHSA-w62v-xxxg-mg59","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59895"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc"},{"type":"PACKAGE","url":"https://github.com/honojs/hono"},{"type":"WEB","url":"https://github.com/honojs/hono/releases/tag/v4.12.27"}]},{"provider":"redhat-vex","source_id":"CVE-2026-59895","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-59895","license":"CC-BY-4.0","published_at":"2026-07-08T16:09:51.273Z","modified_at":"2026-07-28T10:00:28Z","summary":"hono: Hono: Arbitrary markup injection via improper handling of class names in server-side rendering.","details":"A flaw was found in Hono, a web application framework. The `cx()` function within `hono/css` improperly handles class names during server-side rendering. This allows an attacker to inject untrusted values into a JSX class attribute, leading to the injection of arbitrary markup. This could result in Cross-Site Scripting (XSS) attacks, where malicious scripts can be executed in a user's browser.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2026-59895"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-59895"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-27/mcp-server-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-59895"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-59895"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-59895.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-59895"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2498151"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-59895"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59895"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc"},{"type":"WEB","url":"https://github.com/honojs/hono/releases/tag/v4.12.27"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59"}]}],"references":[{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc"},{"type":"WEB","url":"https://github.com/honojs/hono/releases/tag/v4.12.27"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59895"},{"type":"PACKAGE","url":"https://github.com/honojs/hono"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-59895.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-59895"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2498151"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-59895"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1794668523","url":"https://osv.dev/vulnerability/CLSA-2026-1794668523","modified_at":"2026-11-14T19:15:05.427615Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1794718925","url":"https://osv.dev/vulnerability/CLSA-2026-1794718925","modified_at":"2026-11-15T07:15:04.148465Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1794820786","url":"https://osv.dev/vulnerability/CLSA-2026-1794820786","modified_at":"2026-11-16T15:00:05.834528Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-59895","url":"https://www.cve.org/CVERecord?id=CVE-2026-59895","license":"CC-BY-4.0","modified_at":"2026-07-08T19:41:04.292Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-59895","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59895","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1793790161","url":"https://osv.dev/vulnerability/CLSA-2026-1793790161","modified_at":"2026-11-04T14:45:06.150464Z","relation":"self"},{"provider":"osv","source_id":"GHSA-w62v-xxxg-mg59","url":"https://osv.dev/vulnerability/GHSA-w62v-xxxg-mg59","license":"CC-BY-4.0","modified_at":"2026-09-10T03:51:12.371507Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-59895","url":"https://access.redhat.com/security/cve/CVE-2026-59895","license":"CC-BY-4.0","modified_at":"2026-07-28T10:00:28Z","relation":"self"}]}
