BreachSpiderVerified, not vibes

CVE-2023-29019 in Fastify Passport

High 8.1 Fix available

@fastify/passport is a port of passport authentication library for the Fastify ecosystem. Applications using `@fastify/passport` in affected versions for user authentication, in combination with `@fastify/session` as the underlying session management mechanism, are vulnerable to session fixation attacks from network...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.1
EPSS0.9%
EPSS percentile60th
FixAvailable

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

Affected products and versions

VendorProductAffected versions
Fastify Passport < 1.1.0 ≥ 2.0.0, < 2.3.0

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.

Vendor PSIRT: [email protected]

Exploitation

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

Official description

@fastify/passport is a port of passport authentication library for the Fastify ecosystem. Applications using `@fastify/passport` in affected versions for user authentication, in combination with `@fastify/session` as the underlying session management mechanism, are vulnerable to session fixation attacks from network and same-site attackers. fastify applications rely on the `@fastify/passport` library for user authentication. The login and user validation are performed by the `authenticate` function. When executing this function, the `sessionId` is preserved between the pre-login and the authenticated session. Network and same-site attackers can hijack the victim's session by tossing a valid `sessionId` cookie in the victim's browser and waiting for the victim to log in on the website. As a solution, newer versions of `@fastify/passport` regenerate `sessionId` upon login, preventing the attacker-controlled pre-session cookie from being upgraded to an authenticated session. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-29019
BreachSpider IDBS-2023-GLOBAL-350207-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Published2023-04-21
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-384: CWE-384

Related attack patterns (CAPEC)

CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-384

CAPEC-59 Session Credential Falsification through Prediction via CWE-384

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-384

CAPEC-61 Session Fixation via CWE-384

CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-384

Show all 7

CAPEC-196 Session Credential Falsification through Forging via CWE-384

CAPEC-21 Exploitation of Trusted Identifiers via CWE-384

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Applications using @fastify/passport in affected versions, combined with @fastify/session, are vulnerable to session fixation attacks, allowing attackers to hijack user sessions.

Attackers can exploit the vulnerability by setting a session ID for a user before they log in, effectively fixing the session ID. Once the user logs in, the attacker can use the fixed session ID to gain unauthorized access to the user's session.

Questions

What is CVE-2023-29019?

Applications using @fastify/passport in affected versions, combined with @fastify/session, are vulnerable to session fixation attacks, allowing attackers to hijack user sessions.

What is the CVSS score for CVE-2023-29019?

CVE-2023-29019 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N. EPSS: 0.9%.

Is CVE-2023-29019 actively exploited?

No confirmed active exploitation of CVE-2023-29019 as of 2026-05-30.

How do I remediate CVE-2023-29019?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2023-29019?

CVE-2023-29019 affects Fastify Passport.

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":"Passport","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 2024-11-21.