Skip to main content

CVE-2026-126084 — Active Storage: Unsigned Content-Type in...

MEDIUM

Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control

Published November 12, 2026Updated November 12, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.16%). Schedule for your next planned update.

Does your project use an affected activestorage version?

Paste your Gemfile.lock to check it for CVE-2026-126084 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

Impact

When a GCS service is configured with the cache_control option, ActiveStorage::Service::GCSService#url_for_direct_upload signs direct-upload URLs with V4, and the V4 signature covers only the Cache-Control and Host headers. A direct-upload client can therefore send a Content-Type of its choosing, and can omit the declared Content-MD5, without invalidating the URL. GCS stores the supplied content type as object metadata, which takes precedence over the response-content-type that Active Storage sets on download URLs, so an uploaded object could be served as inline HTML under the application's bucket path on storage.googleapis.com. Script in such an object runs on the storage origin rather than the application's, but could register a Service Worker scoped to the bucket path and read or replace a victim's later responses for signed URLs in that bucket.

Applications that use the GCS service with cache_control configured and accept direct uploads are affected. GCS services without cache_control sign with V2 and are not affected.

Details

The fixed releases sign every GCS direct-upload URL with V2, which binds an empty Content-Type and the declared Content-MD5. The configured Cache-Control is still returned by headers_for_direct_upload and sent by the client, but it is no longer part of the signature, and direct-upload URLs for these services are no longer limited to V4's seven-day maximum expiry. See the Active Storage CHANGELOG.

Workarounds

Removing the cache_control option from the GCS service configuration makes Active Storage sign direct uploads with V2.

Releases

The fixed releases are available at the normal locations.

Patches for those who cannot upgrade at once:

Credit

This issue was responsibly reported by HackerOne researcher thepo1es.

Advisory Timeline

  • First published November 12, 2026 (13 days ago).
  • Last revised November 12, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activestorage to 8.1.4.1 or later
gem install activestorage -v 8.1.4.1
Bundler
Update activestorage to 8.0.5.2 or later
gem install activestorage -v 8.0.5.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
activestorage RubyGems · Affected: 8.1.0, 8.1.0.beta1, 8.1.0.rc1, 8.1.1 (+5 more)8.1.4.1
activestorage RubyGems · Affected: 0.1, 5.2.0, 5.2.0.beta1, 5.2.0.beta2 (+173 more)8.0.5.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-345
    Insufficient Verification of Data AuthenticityMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 4.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Frequently Asked Questions

What is CVE-2026-126084?
Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.7/10).
How do I check if my project is affected by CVE-2026-126084?
CVE-2026-126084 affects activestorage. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-126084 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
4.7

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.16%
EPSS percentile: 2.6

This is a below-median EPSS score — only 2.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-3w93-6hmw-whh4

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock