CVE-2026-126077 — Vulnerability in actionpack — CVE Details
Action Pack: Possible sensitive session information leak in Active Storage proxy mode
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.42%). Schedule for your next planned update.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2026-126077 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
When ActionDispatch::Cookies reads a signed or encrypted cookie that was written under a rotated secret (config.action_dispatch.cookies_rotations) or in the format that a :hybrid cookie serializer migrates from, it writes the cookie back to the response in the current format, and that write ignores request.session_options[:skip]. ActiveStorage::DisableSession relies on that option to keep the session cookie off the public, immutable responses of the Active Storage proxy controllers, but those controllers still load the session, so a request carrying an old-format session cookie could receive the rewritten session cookie in Set-Cookie on a cacheable response. A shared cache that stores such a response together with its Set-Cookie header could then serve one user's session to later requesters of the same URL, or serve an attacker's session to other users.
Applications are affected when they serve Active Storage files through the proxy controllers, have a cookie rotation or a :hybrid serializer migration configured, and run behind a cache that stores Set-Cookie on public responses. This is a path around the fix for CVE-2024-26144.
Details
In the fixed releases, a response that skips the session leaves an old-format signed or encrypted cookie unchanged, and the next request that does not skip the session upgrades it. An application that skips the session on every request no longer upgrades its signed or encrypted cookies. Cookies that the application sets explicitly are still written. See the Action Pack CHANGELOG.
Workarounds
Configure caching proxies not to store responses that carry a Set-Cookie header, or complete the cookie rotation or serializer migration and remove it from the configuration.
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/849a6c30eacbb6ca4722132f43c4333a93188556.patch
- 8.0: https://github.com/rails/rails/commit/0e6cf8faa89caf4c64311d35ca2bc88c1458d4e3.patch
Credit
This issue was responsibly reported by HackerOne researcher flashmyname.
Advisory Timeline
- First published November 12, 2026 (13 days ago).
- Last revised November 13, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionpack -v 8.0.5.2
gem install actionpack -v 8.1.4.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionpack RubyGems · Affected: 0.9.0, 0.9.5, 1.0.0, 1.0.1 (+507 more) | 8.0.5.2 |
| actionpack RubyGems · Affected: 8.1.0, 8.1.0.beta1, 8.1.0.rc1, 8.1.1 (+5 more) | 8.1.4.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/rails/rails/security/advisories/GHSA-x6mj-8jx9-qhqvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-126077ADVISORY
- https://github.com/rails/rails/commit/0e6cf8faa89caf4c64311d35ca2bc88c1458d4e3WEB
- https://github.com/rails/rails/commit/849a6c30eacbb6ca4722132f43c4333a93188556WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rails/rails/releases/tag/v8.0.5.2WEB
- https://github.com/rails/rails/releases/tag/v8.1.4.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/GHSA-x6mj-8jx9-qhqv.ymlWEB
Frequently Asked Questions
- What is CVE-2026-126077?
- Action Pack: Possible sensitive session information leak in Active Storage proxy mode. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
- How do I check if my project is affected by CVE-2026-126077?
- CVE-2026-126077 affects actionpack. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-126077 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 27.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2021-22885HIGH
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
- CVE-2022-22577MEDIUM
Cross-site Scripting Vulnerability in Action Pack
- CVE-2011-1497MEDIUM
Cross site scripting in actionpack Rubygem
- CVE-2021-44528MEDIUM
actionpack Open Redirect in Host Authorization Middleware
- CVE-2026-126073MEDIUM
Action Pack: Possible cache poisoning in Action Pack content negotiation
- CVE-2026-126072MEDIUM
Action Pack: Possible DoS vulnerability in Action Controller Live streaming
- CVE-2024-47887MEDIUM
Possible ReDoS vulnerability in HTTP Token authentication in Action Controller
- CVE-2026-33167LOW
Rails has a possible XSS vulnerability in its Action Pack debug exceptions