Home › CVE › JavaScript
CVE-2026-126359 — Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
One of 5 npm:hono vulnerabilities published together by GitHub Advisory: our article covers all of them.
JavaScriptWebBrowsersVulnerabilitiesLaw enforcementResearch article
HonoJS Vulnerability Allows HTML Injection via CSS Template Interpolation
| CVE | CVE-2026-126359 |
|---|---|
| Vendor and product | npm:hono; honojs hono |
| Published | November 22, 2026 06:30 UTC |
| Research cut-off | November 22, 2026 06:15 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-17); CISA KEV catalog; GitHub advisory (2026-11-12); FIRST EPSS (2026-11-21) |
Executive summary
CVE-2026-126359 affects the honojs hono library, with a CVSS 3.1 score of 3.4 LOW, scored by security-advisories@github.com [1]. The vulnerability exists in versions >= 3.12.0 and < 4.13.16 [1]. The reviewed sources do not report exploitation [2]. The main action is to upgrade to the fixed version 4.13.16 [3].
Key points
- CVE-2026-126359 affects the honojs hono library with a CVSS 3.1 score of 3.4 LOW [1].
- The vulnerability exists in versions >= 3.12.0 and < 4.13.16 [1].
- The reviewed sources do not report exploitation [2].
- The `css` helper fails to escape a `/` following a `<` in interpolated values, allowing HTML injection [3].
- The fixed version is 4.13.16 [3].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-126359 | honojs | hono | CWE-79 | 3.4 LOW, scored by security-advisories@github.com [1] | 2026-11-13 | 2026-11-17 | Deferred |
Vulnerability description
A flaw in the css helper of the hono/css module fails to properly escape a / that follows a < within an interpolated value, which can leave the closing tag of a <style> element unescaped [3]. This can result in HTML injection if untrusted strings are interpolated into a css template immediately after a < character [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability requires network access (AV:N), high access complexity (AC:H), no privileges (PR:N), and user interaction (UI:R) [1]. The advisory says the vulnerability is triggered when untrusted strings are interpolated into a css template immediately after a < character [3].
Impact analysis
The CVSS vector shows low confidentiality impact (C:L), no integrity impact (I:N), and no availability impact (A:N). The advisory notes that the impact includes the execution of scripts controlled by an attacker in the browsers of users viewing the vulnerable page, as well as the possible exposure of sensitive data [3].
Affected products and versions
| Affected | Fixed |
|---|---|
| hono >= 3.12.0, < 4.13.16 | hono 4.13.16 [3] |
Exploitation and threat intelligence status
CVE-2026-126359 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-22 [2]. The EPSS score for this CVE is 0.0026 (0.26%), which suggests a low estimated likelihood of exploitation within the next 30 days [4].
Detection and exposure assessment
Users can assess their exposure by verifying if their hono installation falls within the vulnerable range: >= 3.12.0 and < 4.13.16 [1]. The sources do not provide specific detection procedures [3].
Remediation
The fixed version is 4.13.16 [3]. To mitigate the risk, avoid inserting untrusted values into css templates or ensure that the text preceding an interpolated value does not end with < [3].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe the attack lifecycle or specific exploitation scenarios.
- The sources do not provide indicators of compromise.
- The sources do not list a fixed version for all affected products.
References
- CVE-2026-126359 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-126359. Accessed 2026-11-22.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-22. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-22.
- GHSA-3gg2-335m-rxc6 / CVE-2026-126359 — Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection. GitHub Security Advisory Database, 2026-11-12. https://github.com/advisories/GHSA-3gg2-335m-rxc6. Accessed 2026-11-22.
- EPSS score for CVE-2026-126359. FIRST, 2026-11-21. https://api.first.org/data/v1/epss?cve=CVE-2026-126359. Accessed 2026-11-22.
Severity breakdown
Low · 3.4
An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
- Impact
- low on confidentiality, none on integrity and availability
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| hono (npm) | ≥ 3.12.0, ≤ 4.13.15 | 4.13.16 |
| honojs hono | >= 3.12.0, < 4.13.16 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/honojs/hono/commit/15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513
- github.com/honojs/hono/releases/tag/v4.13.16
Other references
Details
Summary
The css helper in hono/css escapes a / that follows < inside an interpolated value so that a value cannot close the <style> element. The check only looks inside each value. When the text before a value ends with <, whether that is the template itself or an earlier interpolated value, and the next value starts with /, the / is not escaped and the combined output contains an unescaped closing tag.
Details
Interpolated string values are escaped one at a time before they are joined with the surrounding template text. The rule that neutralizes </ therefore cannot see a < that belongs to the template. A template such as a content declaration that opens with a literal < and interpolates a string right after it produces a raw </style> when that string starts with /style>. During server-side rendering the <Style /> element is closed early and the rest of the value is interpreted as HTML.
This issue arises only when < is the last character before an interpolation in a css template, either written in the template or supplied by a preceding value, and the interpolated value is controlled by a client.
Impact
A client that controls such a value can inject HTML, including script, into the page rendered on the server.
This may lead to:
- Execution of attacker-controlled script in the browser of a user who views the page
- Exposure of information available to that page
This issue affects applications that interpolate untrusted strings into a css template immediately after a <, including two adjacent interpolations such as ${prefix}${name} where both are untrusted. Other uses of the css helper are not affected.
Workarounds
Do not interpolate untrusted values into css templates, or make sure the text before an interpolated value does not end with <.
Affected
- npm:hono
- honojs hono
Frequently asked questions
What is CVE-2026-126359?
CVE-2026-126359 affects the honojs hono library, with a CVSS 3.1 score of 3.4 LOW, scored by security-advisories@github.com. The vulnerability exists in versions >= 3.12.0 and < 4.13.16. The reviewed sources do not report exploitation. The main action is to upgrade to the fixed version 4.13.16. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-126359?
CVE-2026-126359 has a CVSS 3.1 base score of 3.4 (low), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2026-126359 being exploited?
Not as far as is known: CVE-2026-126359 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126359?
hono (npm) ≥ 3.12.0, ≤ 4.13.15 (fixed in 4.13.16); honojs hono >= 3.12.0, < 4.13.16.
How do I fix CVE-2026-126359?
Upgrade to hono 4.13.16 to address the vulnerability. Avoid inserting untrusted values into css templates or ensure the text preceding an interpolated value does not end with <. Review and update any affected components to prevent potential HTML injection attacks.
Timeline & sources
References
Related vulnerabilities & news
- NukeViet CMS Cross-site Scripting Vulnerability in 4.x Versions
- Akaunting 3.3.0 XSS Vulnerability in Tax Import Workflow
- Adobe Experience Manager XSS Vulnerability Enables Stored Script Injection
- Adobe Experience Manager XSS Vulnerability CVE-2026-119579
- Adobe Campaign Classic stored cross-site scripting flaw (CVE-2026-125723, CVSS 9.0 Critical)