StraitOfVuln
Latest / CVE-2026-117549

CVE-2026-117549

MediumCVSS 4.2 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

Description

@fastify/secure-session is a session plugin for Fastify that stores an encrypted session in a cookie. In versions 7.5.0 through 8.4.1, when the plugin is configured with the signed cookie option, it calls the cookie unsign routine but, when the signature check reports the value as invalid, still passes the original cookie value to the session decoder, so a session whose signature did not validate is decrypted anyway. The practical effect appears when an application supplies the cookie signing secret independently of the session encryption key and rotates only the signing secret to retire existing sessions while keeping the encryption key active, because a holder of an old session cookie can strip the now obsolete signature and keep using the session. The attacker must already possess an unexpired encrypted session cookie and needs neither secret, and cannot forge session data, extend expiry, or survive rotation of the encryption key. The issue is fixed in @fastify/secure-session 8.4.2, which no longer decodes the session when the signed cookie option is set and the signature check fails, and users should upgrade to 8.4.2 or later. As a workaround, rotate the session encryption key rather than relying on rotation of the cookie signing secret alone.

Details

CVE ID
CVE-2026-117549
Published / updated
02 Nov 2026, 11:17 UTC · last modified 02 Nov 2026, 17:17 UTC
Severity
MEDIUM
CVSS score
4.2 · v3.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N · Attack vector: Network
Affected vendor
@fastify/secure-session
Affected products
@fastify/secure-session
Affected versions
@fastify/secure-session: 7.5.0 to before 8.4.2
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
@fastify/secure-session 8.4.2
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.07% probability of exploitation in the next 30 days · 0% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
ce714d77-add3-4f53-aff5-83d477b104bb