{"id":"EUVD-2023-1192","enisaUuid":"59bc40d0-721a-3b7e-af84-cfe09ceef08d","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\u0027s session by tossing a valid `sessionId` cookie in the victim\u0027s 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.\n","datePublished":"Apr 21, 2023, 10:28:55 PM","dateUpdated":"Feb 4, 2025, 7:38:59 PM","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","references":"https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9\nhttps://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11\nhttps://owasp.org/www-community/attacks/Session_fixation\n","aliases":"CVE-2023-29019\nGHSA-4m3m-ppvx-xgw9\n","assigner":"GitHub_M","epss":0.75,"enisaIdProduct":[{"id":"1bae7626-eb56-387f-8640-a1824af89470","product":{"name":"fastify-passport","vendor":{"name":"fastify"}},"product_version":"\u003c 1.1.0"},{"id":"8721065c-c390-30da-a55a-3267d7a42bd4","product":{"name":"fastify-passport","vendor":{"name":"fastify"}},"product_version":"2.0.0, \u003c 2.3.0"}],"enisaIdVendor":[{"id":"82171eb9-81c5-3528-a868-e782ea40c0b6","vendor":{"name":"fastify"}}],"enisaIdVulnerability":[{"id":"65a0be7b-8c47-3334-a30d-83252c484c21","vulnerability":{"id":"CVE-2023-29019","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\u0027s session by tossing a valid `sessionId` cookie in the victim\u0027s 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.\n","datePublished":"Apr 21, 2023, 10:28:55 PM","dateUpdated":"Feb 4, 2025, 7:38:59 PM","status":"PUBLISHED","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","references":"https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9\nhttps://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11\nhttps://owasp.org/www-community/attacks/Session_fixation\n","enisa_id":"EUVD-2023-1192\n","assigner":"GitHub_M","epss":0.75,"dataProcessed":"Nov 15, 2026, 7:23:34 AM","vulnerabilityProduct":[{"id":"0088ba87-1801-3d0f-a4e5-4fd2a2bc3a12","product":{"name":"fastify-passport","vendor":{"name":"fastify"}},"product_version":"2.0.0, \u003c 2.3.0"},{"id":"f07cc649-e14e-34be-8098-6dcba3b85034","product":{"name":"fastify-passport","vendor":{"name":"fastify"}},"product_version":"\u003c 1.1.0"}],"vulnerabilityVendor":[{"id":"b97129de-c25f-35c1-88ae-5f5f1b5d7c5a","vendor":{"name":"fastify"}}]}},{"id":"a46d7f71-a8dd-3ca2-8e66-85dfdb0ce41a","vulnerability":{"id":"GHSA-4m3m-ppvx-xgw9","description":"Session fixation in fastify-passport","datePublished":"Apr 21, 2023, 10:33:30 PM","dateUpdated":"Apr 24, 2023, 3:56:25 PM","baseScore":null,"references":"https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-29019\nhttps://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11\nhttps://github.com/fastify/fastify-passport\nhttps://owasp.org/www-community/attacks/Session_fixation\n","enisa_id":"EUVD-2023-1192\n","aliases":"CVE-2023-29019\nGHSA-4m3m-ppvx-xgw9\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:32:34 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}