Race Condition Affecting @fastify/session package, versions <11.1.6


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (1st 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-FASTIFYSESSION-21755406
  • published27 Oct 2026
  • disclosed27 Oct 2026
  • creditYounghun Ko, BlueN0r

Introduced: 27 Oct 2026

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

How to fix?

Upgrade @fastify/session to version 11.1.6 or higher.

Overview

@fastify/session is an a session plugin for fastify

Affected versions of this package are vulnerable to Race Condition via Session.decodeSessionId and the session restoration logic in index.js, where a stale or superseded session cookie can be used to restore a session that should no longer be valid. An attacker who holds an old session identifier can replay it to regain access to a session that has been regenerated, because the generation check (getSessionGeneration) was absent, allowing the store lookup to succeed and the old session to be restored without verifying that the cookie's embedded generation matches the stored session's current generation.

CVSS Base Scores

version 4.0
version 3.1