Vulnerabilities / Cookie with SameSite attribute set to None
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
↓
Severity
Low
CWE Name
Cookie with SameSite attribute set to None
CWE ID
CWE-1275
CVSS Score
3.1
Compliance
We found a Set-Cookie header with the SameSite cookie attribute set to None. Although this is not a vulnerability by itself, the SameSite cookie attribute defines whether cookies are sent in cross-site requests. If properly configured, SameSite makes Cross-Site Request Forgery (CSRF) attacks impossible or very hard to perpetrate. If set to None, this protection is not enabled.
How to fix
Set the SameSite cookie attribute to
strict
to mitigate CSRF attacks. Ifstrict
breaks any functionality, uselax
instead, which gives you protection against POST-based CSRF, but not GET ones.