CVE-2026-126073
published medium CVSS 3.1 · 4.8Action Pack: Possible cache poisoning in Action Pack content negotiation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rails | — | rails>= 8.1, < 8.1.4.1 · < 8.0.5.2 | Affected | Not stated | GitHub_M |
| Debian | bookworm | rails | Advisory build | 2:6.1.7.10+dfsg-1~deb12u4 | DLA-4934-1 |
| Debian | trixie | rails | Advisory build | 2:7.2.2.2+dfsg-2~deb13u3 | DSA-6669-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rails | rails | >= 8.1, < 8.1.4.1 (affected)< 8.0.5.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-436 CWE-436: Interpretation Conflict
References
5- https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4b
- https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails/security/advisories/GHSA-r9jg-fmfx-2gv6
Provider assertions
2GitHub_M · cna
Action Pack: Possible cache poisoning in Action Pack content negotiation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 941fa42e1cc231eedc7936fb648ce03b79a7c1ced5b30b2df892fb81e44bed3a
- Ingested
- 12 Nov 2026, 18:03:24 UTC
- Source record
- Official CVE record