{"answers":{"affected":"2 open source packages ship an affected version, including hono. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-59895 in the wild and no public exploit code.","fix":"Upgrade hono to 4.12.27 or later.","what":"CVE-2026-59895 is a medium-severity cross-site scripting vulnerability in honojs hono, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-59895 and fix it if it is affected.\n\nWhat it is: CVE-2026-59895 is a medium-severity cross-site scripting vulnerability in honojs hono, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-59895 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hono (npm): affected from 4.0.0; fixed in 4.12.27\n- hono (npm): affected from 4.0.0; fixed in 4.12.27\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-59895/ (Markdown: https://insights.sbomify.com/CVE-2026-59895/index.md)","id":"CVE-2026-59895","markdown":"https://insights.sbomify.com/CVE-2026-59895/index.md","name":"CVE-2026-59895","record":{"aliases":["CLEANSTART-2026-HY09448","ECHO-7335-a8b9-129c","GHSA-w62v-xxxg-mg59","MINI-2pm7-mg2c-24v7","MINI-3c5c-hwqx-wpfg","MINI-58c9-6263-wgxq","MINI-c7r8-jwpm-8fcg","MINI-fvfg-7x9c-frv6","MINI-jg4g-pq4q-rj42","MINI-mgq2-hvh5-9v4q","MINI-r9x3-hvgj-xqfx","MINI-rwwp-h8jq-g6hf","MINI-w5gx-j99x-p66h","MINI-w8px-xmj7-ph2h","ROOT-APP-NPM-CVE-2026-59895"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Hono web framework","requires_auth":"none","summary":"Attackers can inject arbitrary markup via unescaped class names in server-side rendered JSX, potentially leading to code execution.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hono","vendor":"hono"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility","id":"CVE-2026-59895","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"hono/jsx does not isolate context per request, leading to cross-request data disclosure","id":"CVE-2026-59896"},"packages":[{"ecosystem":"npm","fixed":["4.12.27"],"introduced":["4.0.0"],"last_affected":[],"package":"hono","purl":null,"source":"GHSA-w62v-xxxg-mg59"},{"ecosystem":"npm","fixed":["4.12.27"],"introduced":["4.0.0"],"last_affected":[],"package":"hono","purl":"pkg:npm/hono","source":"GHSA-w62v-xxxg-mg59"}],"prev":{"headline":"sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes","id":"CVE-2026-59894"},"products":["hono"],"published":"2026-07-08","related":[{"cvss_score":8.2,"headline":"Hono is Vulnerable to Authentication Bypass by IP Spoofing in AWS Lambda ALB conninfo","id":"CVE-2026-27700","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":8.2,"headline":"JWT Algorithm Confusion via Unsafe Default (HS256) in Hono JWT Middleware Allows Token Forgery and Auth Bypass","id":"CVE-2026-22817","kev_date_added":null,"published":"2026-01-13"},{"cvss_score":8.2,"headline":"JWT algorithm confusion in Hono JWK Auth Middleware when JWK lacks \"alg\" (untrusted header.alg fallback)","id":"CVE-2026-22818","kev_date_added":null,"published":"2026-01-13"},{"cvss_score":8.1,"headline":"Hono Improperly Authorizes JWT Audience Validation","id":"CVE-2025-62610","kev_date_added":null,"published":"2025-10-22"},{"cvss_score":7.5,"headline":"Hono: Arbitrary file access via serveStatic vulnerability","id":"CVE-2026-29045","kev_date_added":null,"published":"2026-03-04"},{"cvss_score":7.5,"headline":"Hono contains a flaw in URL path parsing, potentially leading to path confusion","id":"CVE-2025-58362","kev_date_added":null,"published":"2025-09-04"},{"cvss_score":6.5,"headline":"hono/jsx does not isolate context per request, leading to cross-request data disclosure","id":"CVE-2026-59896","kev_date_added":null,"published":"2026-07-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["honojs"]},"summary":"Attackers can inject arbitrary markup via unescaped class names in server-side rendered JSX, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-59895/"}