Read the docs
TI-2024-23290 Aliases CVE-2024-35220GHSA-pj27-2xvp-4qxg

@fastify/session reuses destroyed session cookie

Priority HIGH 66CWE-613Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-613.

Summary

@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set. This means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00445 38th percentileScored 2026-11-07
Fix Fixed session (fastify): 10.9.0@fastify/session (npm): 10.9.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
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

VendorProductAffected versionsFixed inStatusSource
fastifysessionbefore 10.9.010.9.0Patch availableCNA
—@fastify/session (npm)before 10.9.010.9.0Patch availableGHSA-pj27-2xvp-4qxg
  • session Vendorfastify Affected before 10.9.0 Fixed in 10.9.0 Patch available CNA
  • @fastify/session (npm) Vendor— Affected before 10.9.0 Fixed in 10.9.0 Patch available GHSA-pj27-2xvp-4qxg

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:*0—fastify
  • cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:* Versions 0 — ·fastify

Remediation

  • Fix · CNA session (fastify) Fixed in 10.9.0
  • Fix · GHSA-pj27-2xvp-4qxg @fastify/session (npm) Fixed in 10.9.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-35220
  2. 2026-10-03 Alias added: GHSA-pj27-2xvp-4qxg

References

  • TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization… CVSS 4.0CRITICAL 9.1
  • TI-2026-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
  • TI-2026-26177 @fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers CVSS 4.0CRITICAL 9.0
  • TI-2026-05498 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
  • TI-2023-15307 Cross-site request forgery in npm @fastify/oauth2 CVSS 3.1HIGH 8.8
  • TI-2022-18664 Denial of service in Fastify via Content-Type header CVSS 3.1HIGH 7.5
See all 76 →

Sources