Missing Support for Integrity Check Affecting activestorage package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIVESTORAGE-22840005
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditthepo1es

Introduced: 10 Nov 2026

NewCVE-2026-126084  (opens in a new tab)
CWE-353  (opens in a new tab)

How to fix?

Upgrade activestorage to version 8.0.5.2, 8.1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Missing Support for Integrity Check via url_for_direct_upload in ActiveStorage::Service::GCSService. When a GCS service has cache_control configured, an attacker with a direct-upload URL can choose the uploaded object’s Content-Type and omit or change its declared checksum. GCS can then serve attacker-controlled HTML inline from the bucket’s storage.googleapis.com origin; if a victim loads the object and the browser permits registration, its script could register a Service Worker scoped to the bucket path and read or replace that victim’s later responses to signed URLs in the bucket.

Notes

  • For the Service Worker impact, a victim must visit the uploaded HTML at the bucket’s storage.googleapis.com URL so its script runs and registers the worker.

Workarounds

  • Remove the cache_control option from the GCS service configuration. This makes direct-upload URLs use V2 signatures, preventing uploaders from changing the Content-Type or declared checksum without invalidating the URL.

CVSS Base Scores

version 4.0
version 3.1