Insufficient Session Expiration Affecting @fastify/session package, versions <10.9.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Learn

Learn about Insufficient Session Expiration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTIFYSESSION-6969137
  • published22 May 2024
  • disclosed21 May 2024
  • creditUnknown

Introduced: 21 May 2024

CVE-2024-35220  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

Upgrade @fastify/session to version 10.9.0 or higher.

Overview

@fastify/session is an a session plugin for fastify

Affected versions of this package are vulnerable to Insufficient Session Expiration when restoring the cookie from the session store. An attacker can exploit this vulnerability by ensuring the expires field is overridden if the maxAge field was set, causing expired sessions to not be destroyed.

CVSS Scores

version 3.1