CVE-2026-56761
JSON

5.3medium

hono - HTML Injection via Improper JSX Attribute Name Handling in SSR

Severity
5.3medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.17% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-458j-xx4x-4375

Description

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.

Affected

Product or packageVersionsReported by
hono honobefore 4.12.14
Not affected: 4.12.14
CVE List, NVD
hono (npm)before 4.12.14GitHub Advisory Database

All scores

VulnCheck5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
VulnCheck4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Summary

Improper handling of JSX attribute names in hono/jsx allows malformed attribute keys to corrupt the generated HTML output.

When 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.

Details

When rendering JSX elements to HTML strings, attribute values are escaped, but attribute names (keys) were previously inserted into the output without validation.

If an attribute name contains characters such as ", >, or whitespace, it can alter the structure of the generated HTML.

For example, malformed attribute names can:

  • Break out of the current attribute and introduce unintended additional attributes
  • Break out of the current HTML tag and inject new elements into the output

This issue arises when untrusted input (such as query parameters or form data) is used as JSX attribute keys during server-side rendering.

Impact

An attacker who can control attribute keys used in JSX rendering may inject unintended attributes or HTML elements into the generated output.

This may lead to:

  • Injection of unexpected HTML attributes
  • Corruption of the HTML structure
  • Potential cross-site scripting (XSS) if combined with unsafe usage patterns

This issue affects applications that pass untrusted input as JSX attribute keys during server-side rendering.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56761 changed 2026-06-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-458j-xx4x-4375 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-56761 changed 2026-10-25Public domain