GitHub Advisoryadvisory · npm
GHSA-p6mr-xf3r-ghq4 Payload has a CSRF Protection Bypass in Authentication Flow
MEDIUM
Official page ↗
- Aliases
- CVE-2026-34749
- Ecosystem
- npm
- Packages
- payload
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- Weaknesses
- CWE-352
- Reviewed
- 2026-04-01
Affected packages
• npm payload: < 3.79.1 → fixed in 3.79.1
Description
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).
Related
Alias · CVE (1)
- CVE-2026-34749 Payload is a free and open source headless content management system. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness