LOW · CVSS 3.0 3.1 EPSS 0.2% · 6th percentile CWE-352

CVE-2026-126067: Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores

Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-gmj8-hvj3-49mw

Summary

Action Pack session stores other than CookieStore fail to apply the configured SameSite attribute to session cookies, leaving certain applications vulnerable to cross-site request forgery. Engineering teams using non-CookieStore session stores in Ruby on Rails must upgrade or apply configuration workarounds.

Who is affected

Applications using session stores such as CacheStore, MemCacheStore, or third-party stores built on AbstractStore without an explicit same_site configuration write session cookies without a SameSite attribute. In browsers that do not default to SameSite=Lax, cross-site requests can carry the session cookie. This potentially leads to cross-site request forgery against actions lacking authenticity token verification, such as API-only applications.

Exploitability

The vulnerability has a CVSS base score of 3.1 indicating a low severity level with network attack vector complexity requiring user interaction. The EPSS score is 0.002, and CISA KEV active exploitation status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
RubyGems actionpack >= 8.1.0.beta1, < 8.1.4.1 8.1.4.1 bundle update actionpack
RubyGems actionpack >= 0, < 8.0.5.2 8.0.5.2 bundle update actionpack

CVSS 3.0 vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

FAQ

Which session stores are affected by this vulnerability?

All session stores other than ActionDispatch::Session::CookieStore are affected, including CacheStore, MemCacheStore, and third-party stores built on AbstractStore, AbstractSecureStore, or session mixins.

What are the fixed versions for Action Pack?

The fixed versions are 8.1.4.1 and 8.0.5.2.

Is there a workaround if I cannot upgrade immediately?

Yes, you can pass the same_site configuration explicitly when setting up your session store, for example by using config.session_store :cache_store, same_site: :lax.

Original advisory description
### Impact Action Pack session stores other than `ActionDispatch::Session::CookieStore` (`CacheStore`, `MemCacheStore`, and third-party stores built on `AbstractStore`, `AbstractSecureStore` or the session mixins) write the session cookie without a `SameSite` attribute, regardless of `config.action_dispatch.cookies_same_site_protection`, which defaults to `:lax`. Only `CookieStore` applies the configured policy. In browsers that do not treat a cookie without the attribute as `SameSite=Lax`, a cross-site request could carry the session cookie, possibly leading to cross-site request forgery against actions that do not verify an authenticity token, such as those of API-only applications. Applications are affected when they use a session store other than `CookieStore` and do not pass `same_site:` to `config.session_store`. ### Details In the fixed releases, every session store sets the session cookie's `SameSite` attribute from `cookies_same_site_protection` when its options have no `:same_site` key. An explicit `same_site:` option, including `same_site: nil`, and a `:same_site` value in a store's `DEFAULT_OPTIONS` still take precedence. ### Workarounds Pass `same_site:` when configuring the session store, for example `config.session_store :cache_store, same_site: :lax`. ### Releases The fixed releases are available at the normal locations. Patches for those who cannot upgrade at once: - 8.1: https://github.com/rails/rails/commit/2d9f502df941e31ce9bad0e846564f49396bed46.patch - 8.0: https://github.com/rails/rails/commit/f2392996be723708271a8d30bfcf0edc221e53ef.patch ### Credit This issue was responsibly reported by HackerOne researcher [tjvc](https://hackerone.com/tjvc).

References

Source records: GHSA-gmj8-hvj3-49mw (OSV.dev) · EPSS by FIRST, 2026-11-21.