CVE & CISA-KEV Catalog

CVE-2023-29019

HIGH
8.1
CVSS v3
NVD

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.

How to fix

Remediation Available
passportNVD
Affected:>= 2.0.0, < 2.3.0Fixed in:2.3.0CVE-2023-29019derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Exploit Intelligence

0.75%probability of exploitation in 30 days
51stpercentile

Moderate risk: more likely to be exploited than 51% of all known CVEs.

References

Vendor Advisory1
Technical Description1

Related Vulnerabilities

Other CWE-384 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2018-11714Critical9.837%--
CVE-2018-18925Critical9.832%--
CVE-2019-12258High7.523%-Fix
CVE-2018-17199High7.520%-Fix
CVE-2019-10008High8.820%--
CVE-2024-50339Medium5.320%-Fix
Embed a live status badge for CVE-2023-29019
CVE-2023-29019 severity badge

Markdown

[![CVE-2023-29019](https://tridentstack.com/cve/badge/CVE-2023-29019.svg)](https://tridentstack.com/cve/CVE-2023-29019)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-29019"><img src="https://tridentstack.com/cve/badge/CVE-2023-29019.svg" alt="CVE-2023-29019"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.