Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in actionpack 8.0.5.2 and actionpack 8.1.4.1.
Action Pack is a framework for handling and responding to web requests. Prior to 8.1.4.1 and 8.0.5.2, 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. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Rails | rails | <8.0.5.2, >=8.1 <8.1.4.1 | |
| rubygems: actionpack | <8.0.5.2, >=8.1.0.beta1 <8.1.4.1 | 8.0.5.2, 8.1.4.1 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in actionpack (RubyGems), strongest first
Embed
A live severity badge for an advisory, README or ticket