{"schemaVersion":3,"id":"CVE-2023-29019","aliases":["GHSA-4m3m-ppvx-xgw9"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-04-21T22:28:55.045Z","modified":"2025-02-04T19:38:59.862Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00751,"percentile":0.54205,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00751},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00751,"percentile":0.54205}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00751,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00751,"percentile":0.54205}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-384","name":"Session Fixation","description":"Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.","type":"weakness","status":"Incomplete","abstraction":"Compound","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/384.html"}],"affected":[{"vendor":"fastify","product":"fastify-passport","name":"fastify-passport","label":"fastify-passport","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0 | ≥ 2.0.0, < 2.3.0","eol":null,"hubHref":"/vendor/fastify/fastify-passport"},{"vendor":"fastify","product":"passport","name":"passport","label":"passport","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0 | ≥ 2.0.0, < 2.3.0","eol":null,"hubHref":"/vendor/fastify/passport"},{"vendor":"@fastify","product":"passport","name":"@fastify/passport","label":"passport","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@fastify/passport","purlType":"npm","versions":[{"text":"< 1.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.0 | ≥ 2.0.0, < 2.3.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9","label":"github.com/fastify/fastify-passport/security/advisories/GHSA-4m3m-ppvx-xgw9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11","label":"github.com/fastify/fastify-passport/commit/43c82c321db58ea3e375dd475de60befbfcf2a11","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://owasp.org/www-community/attacks/Session_fixation","label":"owasp.org/www-community/attacks/Session_fixation","hostname":"owasp.org","tags":["X Refsource MISC","WEB","Technical Description"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29019","label":"nvd.nist.gov/vuln/detail/CVE-2023-29019","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-passport","label":"github.com/fastify/fastify-passport","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-04-21T22:28:55.045Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-04T19:38:59.862Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:10:31.606Z","stale":false,"partial":false}}