CVE-2026-126073
Medium 4.8No known exploitationFix availableAction Pack: Possible cache poisoning in Action Pack content negotiation
Vendor advisory: GHSA-r9jg-fmfx-2gv6
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 37% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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 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. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Weakness: CWE-436
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 rubygem-actionpack 1:8.0.2-6.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| rails | rails | < 8.0.5.2 | Not documented | CVE Program |
| rails | rails | >= 8.1, < 8.1.4.1 | Not documented | CVE Program |
| rubygems | actionpack | from 8.1 before 8.1.4.1 | 8.1.4.1 | GitHub Advisory Database |
| rubygems | actionpack | all versions before 8.0.5.2 | 8.0.5.2 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- GitHub Advisory GHSA-r9jg-fmfx-2gv6 (opens in a new tab)github-advisory
- https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4b (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails/releases/tag/v8.0.5.2 (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails/releases/tag/v8.1.4.1 (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails/security/advisories/GHSA-r9jg-fmfx-2gv6 (opens in a new tab)x_refsource_confirm