CWE-1275: Sensitive Cookie with Improper SameSite Attribute
The SameSite attribute for sensitive cookies is not set, or an insecure value is used.
Last updated
The SameSite attribute for sensitive cookies is not set, or an insecure value is used.
Last updated
CWE-1275 (Sensitive Cookie with Improper SameSite Attribute) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
The SameSite attribute controls how cookies are sent for cross-domain requests. This attribute may have three values: 'Lax', 'Strict', or 'None'.
13 recorded CVEs are caused by CWE-1275 (Sensitive Cookie with Improper SameSite Attribute). The highest-severity and most recent are shown first. 4 new CWE-1275 CVEs have been recorded so far in 2026 (5 in 2025).
Incorrect handling of SameSite cookies
HCL AION is susceptible to Missing SameSite vulnerability
Kimai 1.30.10 SameSite Cookie Vulnerability Session Hijacking
Spring Framework sameSite Attribute Dropped in JettyCoreServerHttpResponse
IBM Sterling B2B Integrator and IBM Sterling File Gateway information disclosure
AsyncHttpClient: Cookie Domain attribute is not checked against the public suffix list, so a cookie can be set for co.uk
Missing CSRF protection
IBM Cloud Pak for Security information disclosure
HCL SX is susceptible to cookie with Insecure, Improper, or Missing SameSite attribute vulnerability
HCL BigFix Compliance is affected by an improper or missing SameSite attribute
AsyncHttpClient: Cookie stored for an unrelated domain (cookie tossing) via ThreadSafeCookieStore
Showing 12 of 13 recorded CWE-1275 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-1275 is exploited.
Modify Application Data
Affects: Confidentiality, Integrity, Non-Repudiation, Access Control
Typically introduced during these phases of the software lifecycle.
Technologies
Practical mitigations for CWE-1275, grouped by where in the lifecycle they apply.
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 likely to cause side-effects of state mutation.
Effectiveness: High — While this mitigation is effective for protecting cookies from a browser's own scripting engine, third-party components or plugins may have their own engines that allow access to cookies. Attackers might also be able to use XmlHttpResponse to read the headers directly and obtain the cookie.
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
MITRE examples of the weakness in code.
In this example, a cookie is used to store a session ID for a client's interaction with a website. The snippet of code below establishes a new cookie to hold the sessionID.
Vulnerable example
let sessionId = generateSessionId()
let cookieOptions = { domain: 'example.com' }
response.cookie('sessionid', sessionId, cookieOptions)Attack input
<html>
<form id=evil action="http://local:3002/setEmail" method="POST">
<input type="hidden" name="newEmail" value="abc@example.com" />
</form>
<script>evil.submit()</script>
</html>Safe example
let sessionId = generateSessionId()
let cookieOptions = { domain: 'example.com', sameSite: 'Strict' }
response.cookie('sessionid', sessionId, cookieOptions)Real CVEs that MITRE cites as examples of this weakness.
CAPEC attack patterns that exploit this weakness.
Common questions about CWE-1275.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-1275 CVE affects your products, with AI-written analysis and remediation steps.