---
title: "GHSA-3gg2-335m-rxc6: Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection"
description: "Low severity. Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection."
url: https://inlinr.com/advisories/GHSA-3gg2-335m-rxc6
lang: en
---

[Packages](https://inlinr.com/packages) / [hono](https://inlinr.com/packages/hono) / [Security](https://inlinr.com/packages/hono/security)

Low Vulnerability GHSA-3gg2-335m-rxc6 CVE-2026-126359 Published 12 Nov 2026

# Hono: \`css\` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection

Your version 

Affected releases · [hono](https://inlinr.com/packages/hono)

- 4.x 4.0.0 – 4.13.15 Fixed in 4.13.16
- 3.x 3.12.0 – 3.12.12 No fix on this line yet

On 4.x, the newest line:

```
npm install hono@4.13.16
```

Every release on a timeline

4.x 

1. Affected

4.0.0 – 4.13.15  
197 releases
2. Fixed

4.13.16 – 4.13.19  
4 releases, latest

3.x 

1. Not affected

3.0.0 – 3.11.12  
79 releases
2. Affected

3.12.0 – 3.12.12  
13 releases

416 stable releases of hono, oldest to newest, one row per major.

## What happens

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

## How it is exploited

Exploitable over the network, with no account and a user to do something.

- **Confidentiality**: low
- **Integrity**: none
- **Availability**: none

CVSS:3.1/​AV:N/​AC:H/​PR:N/​UI:R/​S:C/​C:L/​I:N/​A:N

## References

- [Reference](https://github.com/honojs/hono/security/advisories/GHSA-3gg2-335m-rxc6 "https://github.com/honojs/hono/security/advisories/GHSA-3gg2-335m-rxc6")  
github.com/honojs/hono/security/advisories/GHSA…
- [Fix commit](https://github.com/honojs/hono/commit/15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513 "https://github.com/honojs/hono/commit/15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513")  
15bbd96
- [Package](https://github.com/honojs/hono "https://github.com/honojs/hono")  
github.com/honojs/hono
- [Reference](https://github.com/honojs/hono/releases/tag/v4.13.16 "https://github.com/honojs/hono/releases/tag/v4.13.16")  
github.com/honojs/hono/releases/tag/v4.13.16

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
