Race Condition Affecting hono package, versions >=4.11.8 <4.12.27


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-HONO-17900542
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditthesmartshadow

Introduced: 8 Jul 2026

NewCVE-2026-59896  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade hono to version 4.12.27 or higher.

Overview

hono is an Ultrafast web framework for the Edges

Affected versions of this package are vulnerable to Race Condition through server-side rendering context handling in createContext and useContext. An attacker can read another in-flight request’s provided value by causing an async component to suspend on await and then resume while concurrent SSR requests are rendering through the same provider stack. When useContext() is called after the suspension point, the render can observe a value from a different request instead of its own session-scoped data. This can leak user-specific HTML or cause authorization checks and other request-scoped decisions to use the wrong user’s context.

Notes

  • On runtimes without AsyncLocalStorage, the vulnerable path falls back to a process-local store only for synchronous work; a useContext() read after await in an async SSR component can therefore degrade to the context’s default value rather than retain the request’s provided value.
  • The leak is limited to server-side rendering in the async-suspension path; synchronous components and client-side DOM rendering are not part of the affected execution flow.

CVSS Base Scores

version 4.0
version 3.1