Active Storage Vulnerability in Google Cloud Storage by Rails
CVE-2026-126084
4.7MEDIUM
What is CVE-2026-126084?
An improper validation issue affecting ActiveStorage allows unrestricted Content-Type during direct uploads to Google Cloud Storage (GCS). When configured with the cache_control option, the V4 signed URLs created can permit arbitrary content types without validation, enabling potential malicious HTML content to be stored. This could lead to a scenario where the uploaded object runs scripts at the storage origin, possibly leveraging a Service Worker to intercept further requests made to signed URLs under the application’s storage bucket. Fixes for this vulnerability are included in versions 8.1.4.1 and 8.0.5.2.
Affected Version(s)
rails >= 8.1, < 8.1.4.1 < 8.1, 8.1.4.1
rails < 8.0.5.2 < 8.0.5.2
