# CVE-2026-126073: Action Pack: Possible cache poisoning in Action Pack content negotiation

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-11-10T20:46:43.153Z
- Modified: 2026-11-12T22:09:39.233Z
- Also known as: GHSA-r9jg-fmfx-2gv6
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rails rails: >= 8.1, < 8.1.4.1; < 8.0.5.2
- actionpack (RubyGems): from 8.1 before 8.1.4.1; before 8.0.5.2

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.0 4.8 Medium `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-2gv6> (web)
- <https://github.com/rails/rails/commit/7a955ca36779938267c93902c47d1f55bab99b4b> (web)
- <https://github.com/rails/rails/commit/b58c107abe9c1f10c1d6a4941402c60e4dc4742c> (web)
- <https://github.com/rails/rails/releases/tag/v8.0.5.2> (web)
- <https://github.com/rails/rails/releases/tag/v8.1.4.1> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/GHSA-r9jg-fmfx-2gv6.yml> (web)

## Sources

- CVE List: [CVE-2026-126073](https://www.cve.org/CVERecord?id=CVE-2026-126073), CVE Terms of Use, modified 2026-11-12
- GitHub Advisory Database: [GHSA-r9jg-fmfx-2gv6](https://github.com/advisories/GHSA-r9jg-fmfx-2gv6), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-126073](https://nvd.nist.gov/vuln/detail/CVE-2026-126073), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126073 · Whole record: https://cve.day/CVE-2026-126073.json · Rebuilt by cve.day 2026-11-25T22:59:50.273Z
