GHSA-p6mr-xf3r-ghq4
Payload has a CSRF Protection Bypass in Authentication Flow
Quick fix
GHSA-p6mr-xf3r-ghq4 — payload: upgrade to the fixed version with the command below.
npm install payload@3.79.1Details
### Impact
A Cross-Site Request Forgery (CSRF) vulnerability existed in the authentication flow. Under certain conditions, the configured CSRF protection could be bypassed, allowing cross-site requests to be made.
Consumers are affected if ALL of these are true:
- Payload version **< v3.79.1** - `serverURL` is configured
### Patches
This vulnerability has been patched in **v3.79.1**. Additional validation has been added to the authentication flow.
Consumers should upgrade to **v3.79.1** or later.
### Workarounds
There is no complete workaround without upgrading.
If consumers cannot upgrade immediately, setting `cookies.sameSite` to `'Strict'` will prevent the session cookie from being sent cross-site. However, this will also require users to re-authenticate when navigating to the application from external links (e.g. email, other sites).
Are you affected?
Enter the version of the package you're using.
Affected packages
References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/payload"]}'