CVE-2026-126073 — Action Pack: Possible cache poisoning in actionpack
Action Pack: Possible cache poisoning in Action Pack content negotiation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.49%). Schedule for your next planned update.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2026-126073 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
Action Pack negotiates the format of a rendered response from the Accept, X-Requested-With and, for XHR requests without Accept, Content-Type request headers, but ActionController::Rendering#_set_vary_header adds Vary: Accept only when the request carries a usable Accept header and the response has no Vary header yet. A response to a request without Accept, or to an XHR request, therefore omits the headers that selected its representation, and a response whose Vary the application set before rendering (for example Vary: Accept-Language) never gains Accept. A shared cache that honours Vary could store such a response and serve it to later clients that request a different representation, possibly leading to cache poisoning in which visitors receive, until the entry expires, a page without its layout or HTML in place of JSON. The attacker cannot choose the content of the response.
Applications that render negotiated responses from actions marked public (for example with expires_in ..., public: true) behind a shared cache that honours Vary, such as Thruster or Rack::Cache, are affected.
Details
In the fixed releases, a rendered response whose format is not given by the URL lists Accept and X-Requested-With in Vary, and also Content-Type for an XHR request without Accept; when config.action_dispatch.ignore_accept_header is enabled, it lists only X-Requested-With. These fields are appended to an existing Vary value rather than skipped, and Vary: * is left unchanged. Shared caches can store more variants of such responses than before. See the Action Pack CHANGELOG for details.
Workarounds
Set Vary: Accept, X-Requested-With on negotiated responses in the application, for example in an after_action, or do not mark negotiated responses public.
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/7a955ca36779938267c93902c47d1f55bab99b4b.patch
- 8.0: https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c.patch
Credit
This issue was found by the Anthropic OSS Scanner (ANT-2026-7GHGLQGO, ANT-2026-5MT6C2R3).
Advisory Timeline
- First published November 10, 2026 (16 days ago).
- Last revised November 10, 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.1, 8.1.2, 8.1.2.1 (+3 more) | 8.1.4.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-436
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
References
- https://github.com/rails/rails/security/advisories/GHSA-r9jg-fmfx-2gv6WEB
- https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4bWEB
- https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742cWEB
- 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-r9jg-fmfx-2gv6.ymlWEB
Frequently Asked Questions
- What is CVE-2026-126073?
- Action Pack: Possible cache poisoning in Action Pack content negotiation. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.8/10).
- How do I check if my project is affected by CVE-2026-126073?
- CVE-2026-126073 affects actionpack. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-126073 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 34.7% 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-2022-23633HIGH
Exposure of information in Action Pack
- CVE-2011-1497MEDIUM
Cross site scripting in actionpack Rubygem
- CVE-2021-44528MEDIUM
actionpack Open Redirect in Host Authorization Middleware
- 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-2016-2097MEDIUM
actionview contains Path Traversal vulnerability
- CVE-2026-33167LOW
Rails has a possible XSS vulnerability in its Action Pack debug exceptions
- CVE-2024-54133LOW
Possible Content Security Policy bypass in Action Dispatch