CVE-2023-29020
CVE-2023-29020 — Cross site request forgery token fixation in fastify-passport
@fastify/passport is a port of passport authentication library for the Fastify ecosystem. The CSRF (Cross-Site Request Forger) protection enforced by the `@fastify/csrf-protection` library, when combined with `@fastify/passport` in affected versions, can be bypassed by network and same-site attackers. `fastify/csrf-protection` implements the synchronizer token pattern (using plugins `@fastify/session` and `@fastify/secure-session`) by storing a random value used for CSRF token generation in the `_csrf` attribute of a user's session. The `@fastify/passport` library does not clear the session object upon authentication, preserving the `_csrf` attribute between pre-login and authenticated sessions. Consequently, CSRF tokens generated before authentication are still valid. Network and same-site attackers can thus obtain a CSRF token for their pre-session, fixate that pre-session in the…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.5
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.5 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-384
- CWE-352
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1134.002Access Token Manipulation: Create Process with Token
- T1134.003Access Token Manipulation: Make and Impersonate Token
- T1606Forge Web Credentials
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /passport, /csrf-protection, /session, /secure-session.
References
4 on the record
- github.com/fastify/fastify-passport/security/advisories/GHSA-2ccf-ffrj-m4qw
x_refsource_CONFIRM
- github.com/fastify/fastify-passport/commit/07c90feab9cba0dd4779e47cfb0717a7e2f01d3d
x_refsource_MISC
- cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#synchronizer-token-pattern
x_refsource_MISC
- owasp.org/www-community/attacks/csrf
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-102489 Undisclosed RCE in Zammad v6.3 and higherCVSS 9.8 · CISA KEV
- CVE-2020-10181 Sumavision EMR Cross-Site Request Forgery (CSRF) VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2008-4128 Cisco IOS Cross-Site Request Forgery VulnerabilityCVSS 9.3 · CISA KEV
- CVE-2025-62593 Ray is vulnerable to RCE via Safari & Firefox Browsers through DNS Rebinding AttackCVSS 8.8 · CISA KEV
- CVE-2023-2533 PaperCut MF/NG 22.0.10 (Build 65996 2023-03-27) - Remote code execution via CSRFCVSS 8.8 · CISA KEV
- CVE-2016-6277 NETGEAR Multiple Routers Remote Code Execution VulnerabilityCVSS 8.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.