CVE-2026-126073: Action Pack: Possible cache poisoning in Action Pack content negotiation
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-r9jg-fmfx-2gv6
Summary
Action Pack fails to properly set the Vary header during content negotiation, potentially leading to cache poisoning where shared caches serve incorrect response formats to users. Users of RubyGems actionpack should update to the specified fixed versions to ensure proper cache header behavior.
Who is affected
This vulnerability affects applications using actionpack that render negotiated responses and mark them as public for shared caches, such as those using Thruster or Rack::Cache. When an application lacks the appropriate Vary headers, a shared cache may serve a response intended for one request type to subsequent users requesting different formats, potentially delivering partial or incorrectly formatted content. The attacker cannot manipulate the content of the response itself.
Exploitability
The vulnerability is rated as medium severity with a CVSS 3.0 score of 4.8, reflecting that exploitation requires specific conditions and a shared cache environment. With an EPSS score of 0.004, the likelihood of active exploitation is currently low, and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade actionpack to version 8.1.4.1 or 8.0.5.2.
- If an immediate upgrade is not possible, apply the official patches provided for 8.1 or 8.0 branches.
- Manually set 'Vary: Accept, X-Requested-With' on negotiated responses using an after_action or avoid marking negotiated responses as public.
How to check your project
- Check the Gemfile.lock file for 'actionpack' version numbers.
- Run 'bundle list | grep actionpack' to identify the installed version of the package.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
>= 8.1, < 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:N/S:U/C:N/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | Low |
FAQ
Can an attacker control the content of the poisoned cache?
No, the attacker cannot choose the content of the response; they can only trigger a scenario where a shared cache misidentifies the correct format to serve.
What specifically triggers this issue?
The issue is triggered when Action Pack performs content negotiation based on headers like 'Accept' or 'X-Requested-With' but fails to properly inform shared caches to differentiate these responses via the 'Vary' header.
Is this vulnerability actively exploited?
Not documented. The CISA Known Exploited Vulnerabilities catalog indicates this is not currently a known exploited vulnerability.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-r9jg-fmfx-2gv6
- WEB https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4b
- WEB https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c
- 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-r9jg-fmfx-2gv6.yml
Source records: GHSA-r9jg-fmfx-2gv6 (OSV.dev) · EPSS by FIRST, 2026-11-24.