BreachSpiderVerified, not vibes

CVE-2024-31999 in Fastify products

High 7.4

@festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the server side is destroyed. When an encry...

Affects 0 products from 4 vendors. Facts below cite their sources.

CVSS 3.17.4
EPSS0.9%
EPSS percentile57th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Fastify — —
Keep — —
Last — —
Plugin — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

@festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the server side is destroyed. When an encrypted cookie with matching session name is provided with subsequent requests, it will decrypt the ciphertext to get the data. The plugin then creates a new session with the data in the ciphertext. Thus theoretically the web instance is still accessing the data from a server-side session, but technically that session is generated solely from a user provided cookie (which is assumed to be non-craftable because it is encrypted with a secret key not known to the user). The issue exists in the session removal process. In the delete function of the code, when the session is deleted, it is marked for deletion. However, if an attacker could gain access to the cookie, they could keep using it forever. Version 7.3.0 contains a patch for the issue. As a workaround, one may include a "last update" field in the session, and treat "old sessions" as expired.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-31999
BreachSpider IDBS-2024-GLOBAL-191687-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Published2024-04-10
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-613: CWE-613

Analysis AI-written, not human-reviewed

CVE-2024-31999 affects @festify/secure-session, a package used for creating secure stateless cookie sessions in Fastify applications. The vulnerability could allow an attacker to manipulate or decrypt session data if the secret key is compromised or if the encryption algorithm is weak.

An attacker could exploit this vulnerability by intercepting the encrypted cookie, attempting to brute-force the secret key, or exploiting weaknesses in the encryption algorithm used by @festify/secure-session. This could lead to unauthorized access to user sessions and potentially sensitive data.

Questions

What is CVE-2024-31999?

CVE-2024-31999 affects @festify/secure-session, a package used for creating secure stateless cookie sessions in Fastify applications. The vulnerability could allow an attacker to manipulate or decrypt session data if the secret key is compromised or if the encryption algorithm is weak.

What is the CVSS score for CVE-2024-31999?

CVE-2024-31999 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N. EPSS: 0.9%.

Is CVE-2024-31999 actively exploited?

No confirmed active exploitation of CVE-2024-31999 as of 2026-09-25.

How do I remediate CVE-2024-31999?

Priority: HIGH.

What systems are affected by CVE-2024-31999?

CVE-2024-31999 affects Fastify; Keep; Last; Plugin.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fastify","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.