Interpretation Conflict Affecting actionpack package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.52% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIONPACK-22839991
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditAnthropic OSS Scanner

Introduced: 10 Nov 2026

NewCVE-2026-126073  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade actionpack to version 8.0.5.2, 8.1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Interpretation Conflict via the _set_vary_header method in ActionController::Rendering. An attacker can send requests without a usable Accept header, including XHR requests whose format is selected using X-Requested-With and, when Accept is absent, Content-Type, causing a shared cache to store a negotiated response without varying on the headers that selected it. When an application serves these responses as public behind a shared cache that honors Vary, later visitors requesting a different representation can receive the cached page, such as HTML instead of JSON or a page without its layout; the attacker cannot choose the response content.

Notes

  • If the application sets Vary before rendering and that value omits the negotiation headers, _set_vary_header skips adding them, even when the request has a usable Accept header.

Workarounds

  • Set Vary: Accept, X-Requested-With on negotiated responses in the application, for example in an after_action, to prevent shared caches from reusing a response selected by different request headers.
  • Do not mark negotiated responses public to prevent shared caches from storing and serving those responses to clients requesting different representations.

CVSS Base Scores

version 4.0
version 3.1