Session Fixation Affecting @fastify/passport package, versions <1.1.0>=2.0.0 <2.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFYPASSPORT-5457848
  • published23 Apr 2023
  • disclosed23 Apr 2023
  • creditpedromigueladao, lavish

Introduced: 23 Apr 2023

CVE-2023-29019  (opens in a new tab)
CWE-384  (opens in a new tab)

How to fix?

Upgrade @fastify/passport to version 1.1.0, 2.3.0 or higher.

Overview

@fastify/passport is a Simple, unobtrusive authentication for Fastify.

Affected versions of this package are vulnerable to Session Fixation. 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 wait for the victim to log in on the website.

References

CVSS Scores

version 3.1