Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend public cacheable request without Accept header
-
ExploitResponse omits Vary: Accept for its representation
-
ExecutionShared cache stores the mis-keyed variant
-
ImpactLater clients served wrong representation until expiry
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitation requires a specific, non-default deployment: the application must render format-negotiated responses from actions explicitly marked public (for example expires_in ..., public: true) AND sit behind a shared cache that honours Vary, such as Thruster or Rack::Cache. The flawed responses are those negotiated without a usable Accept header, XHR requests, or responses where the application already set a Vary value (e.g. Vary: Accept-Language) before rendering, since ActionController::Rendering#_set_vary_header then fails to add Accept. Limiting factors: affected only on actionpack >= 8.1, < 8.1.4.1 and < 8.0.5.2; no effect without a shared Vary-honouring cache or without public caching enabled; the attacker cannot control the substituted content, and impact is bounded to serving a wrong cached representation until the cache entry expires. |
| Impact | All severity signals point to a genuine but low-priority issue. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L, base 4.8 Medium) describes a network-reachable, unauthenticated (PR:N) flaw with high attack complexity (AC:H) because exploitation depends on a specific caching deployment rather than on the request alone; impact is limited to low integrity and low availability with no confidentiality loss (C:N), consistent with CWE-436 (interpretation conflict) and the advisory's note that the attacker cannot choose the response content. No EPSS score, KEV listing, or PoC/exploit reference is present in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The vuln.today Decision label is 'this_month', aligning with the Medium severity and the absence of exploitation signals - this is a hygiene/hardening fix to schedule, not an emergency. One signal to weigh carefully: the input Tags label this 'Information Disclosure', but the mechanism is cache poisoning of content-negotiated representations (a client may receive a page without its layout, or HTML where JSON was expected); because the attacker cannot control the cached content, this is a correctness/integrity and availability problem, not disclosure of sensitive data. The real-world risk is confined to applications that both mark negotiated responses public and sit behind a shared cache honouring Vary. |
| Exploit ScenarioDerived | An attacker (or even ordinary traffic) sends a request lacking an Accept header, or an XHR request, to an action that renders a negotiated response marked public (e.g. expires_in ..., public: true). Because Action Pack omits Accept from the Vary header for such requests, a shared cache like Thruster or Rack::Cache stores the HTML/JavaScript variant and then serves it to later clients that asked for a different representation (e.g. JSON), until the entry expires. No public exploit identified at time of analysis; the attacker cannot choose the substituted content. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Cache poisoning in Rails Action Pack (actionpack) 8.1 before 8.1.4.1 and 8.0 before 8.0.5.2 allows a shared cache that honours Vary to store a rendered response under an incomplete cache key and later serve that representation to clients requesting a different format - for example returning HTML or a layout-less page where JSON was expected. Unauthenticated remote attackers can trigger this (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L, 4.8) only where format-negotiated responses come from actions explicitly marked public (such as expires_in ..., public: true) and sit behind a Vary-honouring shared cache like Thruster or Rack::Cache. No public exploit code or confirmed active exploitation was identified at time of analysis; the attacker cannot choose the content that gets cached, and impact ends when the cache entry expires.
RemediationAI
Vendor-released patches are available: upgrade actionpack to 8.1.4.1 for the 8.1 branch or to 8.0.5.2 for earlier branches (release tags https://github.com/rails/rails/releases/tag/v8.1.4.1 and https://github.com/rails/rails/releases/tag/v8.0.5.2). Organisations that cannot upgrade immediately can apply the vendor-supplied backport patches for 8.1 (https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4b.patch) and 8.0 (https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c.patch). The documented workarounds are to set Vary: Accept, X-Requested-With explicitly on negotiated responses, for example in an after_action, or to stop marking negotiated responses public so shared caches do not store them at all - the latter removes caching benefit for those endpoints. Be aware that after applying the fix, shared caches will retain more variants of negotiated responses than previously, which can reduce hit rates and increase cache memory use.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-436 (Interpretation Conflict) between Rails' content negotiation and the HTTP caching semantics implemented by downstream shared caches. Action Dispatch negotiates a response format from the Accept and X-Requested-With headers, plus Content-Type as a legacy fallback for XHR requests that omit Accept. ActionController::Rendering#_set_vary_header, however, only appended Vary: Accept when the request carried a usable Accept header and the response had no Vary header already set. Consequently three cases produced responses whose cache key did not cover the headers that actually selected the representation: requests without a usable Accept header, XHR requests, and responses where the application had pre-set a Vary value (for example Vary: Accept-Language) before rendering. The upstream fix rewrites this: rendering now derives a list of varying headers (Accept and X-Requested-With, plus Content-Type when the request is XHR without Accept; only X-Requested-With when config.action_dispatch.ignore_accept_header is enabled), splits any existing Vary value on commas, appends the missing fields case-insensitively without duplication, and leaves Vary: * untouched. A side effect called out in the advisory is that shared caches may store more variants of negotiated responses than before the patch.
Know when Ruby On Rails gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because it needs a public-caching, shared-Vary-cache deployment; no confidentiality loss (C:N), only low integrity/availability from a wrong cached page.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Ruby On Rails
View alllib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly
active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, an
Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to e
actionpack/lib/action_view/lookup_context.rb in Action View in Ruby on Rails 3.x before 3.2.16 and 4.x before 4.0.2 allo
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two
SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x
The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly
ActiveRecord in Ruby on Rails before 2.3.17 and 3.x before 3.1.0 allows remote attackers to cause a denial of service or
Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car
EUVD-2026-123003
GHSA-r9jg-fmfx-2gv6
NVD
CVE.org
EPSS
Exploit-DB