{"id":"CVE-2026-56761","aliases":["CVE-2026-56761","GHSA-458j-xx4x-4375"],"related":[],"kind":"vulnerability","state":"published","title":"hono - HTML Injection via Improper JSX Attribute Name Handling in SSR","summary":"hono before 4.12.14 contains an html injection vulnerability in jsx server-side rendering that allows attackers to inject unintended html by using malformed attribute names. Attackers can craft specially crafted attribute keys containing characters like quotes or angle brackets to break html tag boundaries and inject arbitrary attributes or elements.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"hono before 4.12.14 contains an html injection vulnerability in jsx server-side rendering that allows attackers to inject unintended html by using malformed attribute names. Attackers can craft specially crafted attribute keys containing characters like quotes or angle brackets to break html tag boundaries and inject arbitrary attributes or elements.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper handling of JSX attribute names in hono/jsx allows malformed attribute keys to corrupt the generated HTML output.\n\nWhen untrusted input is used as attribute keys during server-side rendering, specially crafted keys can break out of attribute or tag boundaries and inject unintended HTML.\n\n## Details\n\nWhen rendering JSX elements to HTML strings, attribute values are escaped, but attribute names (keys) were previously inserted into the output without validation.\n\nIf an attribute name contains characters such as `\"`, `>`, or whitespace, it can alter the structure of the generated HTML.\n\nFor example, malformed attribute names can:\n\n* Break out of the current attribute and introduce unintended additional attributes\n* Break out of the current HTML tag and inject new elements into the output\n\nThis issue arises when untrusted input (such as query parameters or form data) is used as JSX attribute keys during server-side rendering.\n\n## Impact\n\nAn attacker who can control attribute keys used in JSX rendering may inject unintended attributes or HTML elements into the generated output.\n\nThis may lead to:\n\n* Injection of unexpected HTML attributes\n* Corruption of the HTML structure\n* Potential cross-site scripting (XSS) if combined with unsafe usage patterns\n\nThis issue affects applications that pass untrusted input as JSX attribute keys during server-side rendering.","format":"markdown","source":"ghsa"},{"lang":"es","text":"hono anterior a la versión 4.12.14 contiene una vulnerabilidad de inyección HTML en la representación JSX del lado del servidor que permite a los atacantes inyectar HTML no deseado mediante el uso de nombres de atributos mal formados. Los atacantes pueden crear claves de atributos especialmente diseñadas que contengan caracteres como comillas o corchetes angulares para romper los límites de las etiquetas HTML e inyectar atributos o elementos arbitrarios.","source":"nvd"}],"published":"2026-04-16T01:02:24.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.12.14","status":"affected"},{"type":"semver","version":"4.12.14","status":"unaffected"}],"vendor":"hono","product":"hono","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.12.14"}],"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.12.14"}],"vendor":"hono","product":"hono","cpe":"cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-458j-xx4x-4375","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/hono-html-injection-via-improper-jsx-attribute-name-handling-in-ssr","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/honojs/hono","tags":["package"],"sources":["ghsa"]}],"credits":["tndud042713"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-24T12:17:51.436Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56761","url":"https://www.cve.org/CVERecord?id=CVE-2026-56761","licence":"CVE Terms of Use","modified":"2026-06-24T12:18:01.059Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-458j-xx4x-4375","url":"https://github.com/advisories/GHSA-458j-xx4x-4375","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:42.733Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56761","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56761","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.604Z","epss":{"score":0.00174,"percentile":0.07197,"date":"2026-12-01T12:00:22.000Z"}}