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
- Upgrade RubyGems actionpack to version 8.1.4.1, 8.0.5.2, or later.
- Pass the same_site option directly when configuring the session store, such as config.session_store :cache_store, same_site: :lax.
How to check your project
- Check the Gemfile or Gemfile.lock to verify if the actionpack gem version falls within the ranges introduced at 8.1.0.beta1 and fixed at 8.1.4.1, or introduced at 0 and fixed at 8.0.5.2.
- Inspect application configuration files to determine if non-CookieStore session stores are in use without an explicit same_site parameter.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
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
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-gmj8-hvj3-49mw
- WEB https://github.com/rails/rails/commit/2d9f502df941e31ce9bad0e846564f49396bed46
- WEB https://github.com/rails/rails/commit/f2392996be723708271a8d30bfcf0edc221e53ef
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/GHSA-gmj8-hvj3-49mw.yml
Source records: GHSA-gmj8-hvj3-49mw (OSV.dev) · EPSS by FIRST, 2026-11-21.