VariantIncomplete

CWE-1275Sensitive Cookie with Improper SameSite Attribute

Category: data-exposure

Description

The SameSite attribute for sensitive cookies is not set, or an insecure value is used. The SameSite attribute controls how cookies are sent for cross-domain requests. This attribute may have three values: 'Lax', 'Strict', or 'None'. If the 'None' value is used, a website may create a cross-domain POST HTTP request to another website, and the browser automatically adds cookies to this request. This may lead to Cross-Site-Request-Forgery (CSRF) attacks if there are no additional protections in place (such as Anti-CSRF tokens).

Common consequences· 1

  • Confidentiality / Integrity / Non-Repudiation / Access Control — Modify Application Data
    If the website does not impose additional defense against CSRF attacks, failing to use the 'Lax' or 'Strict' values could increase the risk of exposure to CSRF attacks. The likelihood of the integrity breach is Low because a successful attack does not only depend on an insecure SameSite attribute. In order to perform a CSRF attack there are many conditions that must be met, such as the lack of CSRF tokens, no confirmations for sensitive actions on the website, a "simple" "Content-Type" header in the HTTP request and many more.

Potential mitigations· 1

  • [Implementation]Set the SameSite attribute of a sensitive cookie to 'Lax' or 'Strict'. This instructs the browser to apply this cookie only to same-domain requests, which provides a good Defense in Depth against CSRF attacks. When the 'Lax' value is in use, cookies are also sent for top-level cross-domain navigation via HTTP GET, HEAD, OPTIONS, and TRACE methods, but not for other HTTP methods that are more like to cause side-effects of state mutation.

Related CAPEC attack patterns· 1

CAPEC-62

References

  1. https://cwe.mitre.org/data/definitions/1275.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternCross Site Request Forgerycapec-62100%live

(incoming)14

TypeTargetConfidenceTier
VulnerabilityCVE-2025-24897cve-2025-248970%live
VulnerabilityCVE-2025-52628cve-2025-526280%live
VulnerabilityCVE-2026-8409cve-2026-84090%live
VulnerabilityCVE-2026-8410cve-2026-84100%live
VulnerabilityCVE-2026-8411cve-2026-84110%live
VulnerabilityCVE-2026-8412cve-2026-84120%live
VulnerabilityCVE-2026-8413cve-2026-84130%live
VulnerabilityCVE-2026-8414cve-2026-84140%live
VulnerabilityCVE-2026-8415cve-2026-84150%live
VulnerabilityCVE-2026-8416cve-2026-84160%live
VulnerabilityCVE-2026-8427cve-2026-84270%live
VulnerabilityCVE-2026-8432cve-2026-84320%live
VulnerabilityCVE-2026-8433cve-2026-84330%live
VulnerabilityCVE-2026-8434cve-2026-84340%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
CWE
Cross-Site Request Forgery (CSRF)
CWE
Sensitive Cookie Without 'HttpOnly' Flag
CWE
Reliance on Cookies without Validation and Integrity Checking in a Security Decision
CWE
Use of Persistent Cookies Containing Sensitive Information
CWE
Reliance on Cookies without Validation and Integrity Checking
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.