Sensitive Cookie with Improper SameSite Attribute Affecting actionpack package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIONPACK-22840096
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • credittjvc

Introduced: 10 Nov 2026

NewCVE-2026-126067  (opens in a new tab)
CWE-1275  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade actionpack to version 8.0.5.2, 8.1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Sensitive Cookie with Improper SameSite Attribute via session cookie generation in the ActionDispatch::Session::Compatibility module. When an application uses CacheStore, MemCacheStore, or another non-CookieStore session store without an explicit same_site: option, it emits the session cookie without the configured SameSite policy. An attacker can trigger cross-site requests that include the victim’s session cookie in browsers that do not default cookies without this attribute to SameSite=Lax, enabling CSRF against actions that do not verify authenticity tokens.

Notes

  • At session-cookie generation, config.action_dispatch.cookies_same_site_protection does not protect non-CookieStore stores: the missing attribute persists even when that global setting is :lax or another policy.

Workarounds

  • Configure the non-CookieStore session store with same_site: :lax, for example config.session_store :cache_store, same_site: :lax, to add the SameSite policy to the session cookie and prevent it from being sent with cross-site requests.

CVSS Base Scores

version 4.0
version 3.1