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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th 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 ID SNYK-JS-FASTIFYSESSION-6969137
  • published 22 May 2024
  • disclosed 21 May 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
7.4 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None