CVE-2026-126084: Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-3w93-6hmw-whh4
Summary
Active Storage for Ruby on Rails fails to correctly sign Content-Type headers in GCS direct uploads when cache_control is enabled, allowing attackers to upload arbitrary content types. Users utilizing GCS services with the cache_control option enabled should update their Rails installations immediately.
Who is affected
The vulnerability affects applications using the GCS service with the cache_control configuration enabled that also support direct uploads. Attackers can bypass Content-Type restrictions, potentially causing the browser to render uploaded files as HTML, which could allow for the registration of malicious Service Workers scoped to the storage bucket path.
Exploitability
The exploit requires a network-based attack with high complexity and user interaction, resulting in a CVSS 3.1 base score of 4.7. With an EPSS score of 0.001 and no CISA KEV listing, active exploitation is currently not documented.
Remediation
- Upgrade to RubyGems activestorage version 8.1.4.1 or 8.0.5.2.
- Remove the cache_control option from the GCS service configuration as a temporary workaround if upgrading is not immediately possible.
How to check your project
- Check the Gemfile.lock for activestorage versions between 8.1.0.beta1 and 8.1.4.0, or versions before 8.0.5.2.
- Inspect the Active Storage service configuration for the presence of the cache_control option in GCS service settings.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | activestorage |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update activestorage |
| RubyGems | activestorage |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update activestorage |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
Is my application affected if I do not use GCS for direct uploads?
No, the vulnerability specifically affects GCS service configurations with the cache_control option enabled that support direct uploads.
What happens if I remove the cache_control option?
Removing the cache_control option forces Active Storage to use V2 signing for direct uploads, which is not vulnerable to this issue.
Is this vulnerability actively being exploited in the wild?
There is no documentation indicating active exploitation of this vulnerability by CISA.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-3w93-6hmw-whh4
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-126084
- WEB https://github.com/rails/rails/commit/8d93f6a872e9550a91bf0e4fce50083a235ef3b1
- WEB https://github.com/rails/rails/commit/ddc08ba61a8001e7402864c62e466cf732fc7614
- PACKAGE https://github.com/rails/rails
- 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/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-3w93-6hmw-whh4.yml
Source records: GHSA-3w93-6hmw-whh4 (OSV.dev) · EPSS by FIRST, 2026-11-26.