Race condition in @fastify/session lets revoked sessions be restored
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-613.
Summary
In @fastify/session releases before 11.1.6, a race condition (CWE-362) with the default rolling session behavior lets a request that restored a session save its copy after a logout destroyed it, recreating the session. An attacker who already holds a victim's valid signed session cookie and keeps a request in flight across the logout can restore the revoked session. The attacker needs no cookie theft or signature forgery.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
Description from the CNA
@fastify/session is a session plugin for Fastify. In all releases before 11.1.6, with the default rolling session behavior, a request that restored a session before a logout could save its own copy after another request had completed the session destroy call, recreating the destroyed session identifier with its authenticated data. An attacker who already holds a victim's valid signed session cookie and keeps a request in flight across the logout can replay that cookie to restore the session after it was meant to be revoked, without any cookie theft or signature forgery. The issue is fixed in @fastify/session 11.1.6, which adds a per session generation marker and a conditional store write so a session restored before a logout or regeneration cannot recreate or overwrite the current entry, and users should upgrade to 11.1.6 or later. There is no workaround, and custom session stores must implement the new conditional write.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| @fastify/session | @fastify/session | before 11.1.6 | 11.1.6 | Patch available | CNA |
- @fastify/session Vendor@fastify/session Affected before 11.1.6 Fixed in 11.1.6 Patch available CNA
Remediation
Upgrade @fastify/session to 11.1.6 or later, which fixes this flaw. Custom session stores must implement the new conditional write added in that release.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
- Fix · CNA @fastify/session (@fastify/session) Fixed in 11.1.6
Vendor assessments
Timeline
- 2026-10-27 Threatist record created from CVE-2026-117499
- 2026-11-04 CISA SSVC decision points changed
- 2026-11-07 Affected versions changed · Red Hat
- 2026-11-07 CVSS score added · Red Hat
References
Sources
- CVE-2026-117499 · CVE Program
- CVE-2026-117499 · NVD
- FIRST EPSS
- CVE-2026-117499 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences