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


- **Severity:** Medium 4.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 10 Nov 2026
- **Updated:** 12 Nov 2026
- **Also known as:** DEBIAN-CVE-2026-126073, GHSA-r9jg-fmfx-2gv6, UBUNTU-CVE-2026-126073

## What is CVE-2026-126073?

CVE-2026-126073 is a medium-severity vulnerability in rails, published on 10 Nov 2026. 

### Official 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 (Interpretation Conflict)

## Which versions are affected by CVE-2026-126073?

2 open source packages ship an affected version, including actionpack.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `actionpack` | RubyGems | All versions | 8.0.5.2 |
| `actionpack` | RubyGems | From 8.1 | 8.1.4.1 |

## How do I fix CVE-2026-126073?

Upgrade actionpack to a fixed version for your release line: 8.0.5.2 or 8.1.4.1.

## Is CVE-2026-126073 being exploited?

There is no known exploitation of CVE-2026-126073 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-126073 and fix it if it is affected.

What it is: CVE-2026-126073 is a medium-severity vulnerability in rails, published on 10 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-126073 in the wild and no public exploit code.

Affected packages and fixed versions:
- actionpack (RubyGems): affected all versions; fixed in 8.0.5.2
- actionpack (RubyGems): affected from 8.1; fixed in 8.1.4.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-126073/ (Markdown: https://insights.sbomify.com/CVE-2026-126073/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-126073
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-126073
- OSV: https://osv.dev/vulnerability/CVE-2026-126073

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-126073/
Summaries are generated and may contain mistakes; the official description above is the record.
