CVE-2026-117549
@fastify/secure-session vulnerable to signature verification bypass via cookie signature removal
Mitigation
- Upgrade @fastify/secure-session to 8.4.2 or later.
Who should check
- Anyone running @fastify/secure-session >= 7.5.0, < 8.4.2
Vulnerability facts
- Affected
- @fastify/secure-session >= 7.5.0, < 8.4.2
- Fixed in
- @fastify/secure-session 8.4.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.09% chance of exploitation in 30 days (percentile 0, 2026-11-26)
- CWE
- CWE-347
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| @fastify/secure-session | >= 7.5.0, < 8.4.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-117549. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-117549.md Affected: @fastify/secure-session >= 7.5.0, < 8.4.2 Fixed in: @fastify/secure-session 8.4.2 Steps: 1. Search this machine and project for @fastify/secure-session: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-117549 being exploited?
There is no confirmed exploitation: CVE-2026-117549 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.09% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-117549?
Medium: CVSS 4.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-117549?
@fastify/secure-session >= 7.5.0, < 8.4.2.
Is there a fix for CVE-2026-117549?
Yes. Fixed in @fastify/secure-session 8.4.2. Upgrade @fastify/secure-session to 8.4.2 or later.
How do I check if I'm affected by CVE-2026-117549?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.