Improper Verification of Cryptographic Signature Affecting @fastify/secure-session package, versions >=7.5.0 <8.4.2


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (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-FASTIFYSECURESESSION-22220112
  • published5 Nov 2026
  • disclosed2 Nov 2026
  • creditnirodhav

Introduced: 2 Nov 2026

NewCVE-2026-117549  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade @fastify/secure-session to version 8.4.2 or higher.

Overview

@fastify/secure-session is a Create a secure stateless cookie session for Fastify

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the signed cookie handling logic in index.js when the plugin is configured with cookie.signed: true. The plugin calls fastify.unsignCookie() but, when the signature check returns invalid, still passes the original cookie value to the session decoder, so the session is decrypted even though its signature did not validate. An attacker who holds an unexpired encrypted session cookie can strip the signature and continue using the session after the signing secret has been rotated, bypassing the intended session retirement mechanism.

CVSS Base Scores

version 4.0
version 3.1