Client-Side Enforcement of Server-Side Security 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.47% (43rd 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-22840006
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditf4cts

Introduced: 10 Nov 2026

NewCVE-2026-126085  (opens in a new tab)
CWE-602  (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 Client-Side Enforcement of Server-Side Security via the url_for_direct_upload method in ActiveStorage::Service::GCSService. A client with a direct-upload URL can upload a body larger than the declared byte_size because the signed URL does not bind the content length and headers_for_direct_upload provides no length constraint. The blob retains its declared size, allowing applications that accept direct uploads to Google Cloud Storage to have file-size validations and quotas bypassed.

CVSS Base Scores

version 4.0
version 3.1