# CVE-2026-126077: Rails Action Pack session cookie exposure in cached responses

Source: https://junglewise.ai/threats/cve-2026-126077-action-pack-is-a-framework-for-handling-and-responding-to-web  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-10. Updated: 2026-11-10  
License: CC BY 4.0 with a link back

CVE-2026-126077 · Severity: medium · CVSS 6.8 · Published 2026-11-10

Rails Action Pack, a web framework component for handling HTTP requests, has a flaw where session cookies can be written to cacheable responses despite being marked to skip the session. When running behind a shared cache with cookie rotation or migration enabled, an attacker or another user's session cookie could be served from that cache to other requesters, enabling account takeover or session hijacking attacks.

Technologies: [Rails Action Pack](https://junglewise.ai/threats/technologies/action-pack), [actionpack (RubyGems)](https://junglewise.ai/threats/technologies/actionpack). Vendors: [Rails](https://junglewise.ai/threats/vendors/rails), [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2026-126077 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-126077 being exploited in the wild.

**How severe is CVE-2026-126077?** Medium severity, with a CVSS score of 6.8, published 10 November 2026.

**Which products and versions are affected?** Rails Action Pack Prior to 8.1.4.1 and 8.0.5.2; actionpack (RubyGems) >= 8.1.0.beta1, < 8.1.4.1.

**Is there a fix for CVE-2026-126077?** Yes: fixed in Action Pack 8.1.4.1, 8.0.5.2. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-126077 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-126077?** Check whether you run Rails Action Pack or actionpack (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Action Pack 8.1.4.1, 8.0.5.2

## Technical details

When ActionDispatch::Cookies reads a signed or encrypted cookie that requires format upgrade (from rotated secrets or :hybrid serializer migration), it rewrites the cookie to the response without respecting request.session_options[:skip]. ActiveStorage::DisableSession relies on that option to exclude session cookies from public, cacheable proxy responses. In deployments behind a shared cache, this causes upgraded session cookies to be stored with Set-Cookie headers on cacheable responses, allowing one user's session to be served to other requesters of the same URL.

## Affected products

- Rails Action Pack Prior to 8.1.4.1 and 8.0.5.2

## Identifiers

- CVE-2026-126077
- GHSA-x6mj-8jx9-qhqv

## Timeline

- 2026-11-10: disclosed

## References

- [https://github.com/rails/rails/commit/0e6cf8faa89caf4c64311d35ca2bc88c1458d4e3](https://github.com/rails/rails/commit/0e6cf8faa89caf4c64311d35ca2bc88c1458d4e3)
- [https://github.com/rails/rails/commit/849a6c30eacbb6ca4722132f43c4333a93188556](https://github.com/rails/rails/commit/849a6c30eacbb6ca4722132f43c4333a93188556)

## Related threats

- [Rails Action Pack remote IP spoofing in request handling](https://junglewise.ai/threats/cve-2026-126083-action-pack-is-a-framework-for-handling-and-responding-to-web)
- [Rails Action Pack mass assignment bypass in Parameters#each_key](https://junglewise.ai/threats/cve-2026-126081-action-pack-is-a-framework-for-handling-and-responding-to-web)
- [Ruby on Rails Action Pack session restoration after logout](https://junglewise.ai/threats/cve-2026-126076-action-pack-is-a-framework-for-handling-and-responding-to-web)
- [Rails Action Pack cache poisoning via content-type negotiation](https://junglewise.ai/threats/cve-2026-126073-action-pack-is-a-framework-for-handling-and-responding-to-web)
- [Rails Action Pack thread exhaustion in ActionController::Live](https://junglewise.ai/threats/cve-2026-126072-action-pack-is-a-framework-for-handling-and-responding-to-web)
