Rails Active Storage has possible content type bypass via metadata in direct uploads
Package
Affected versions
>= 8.1.0.beta1, < 8.1.2.1
>= 8.0.0.beta1, < 8.0.4.1
< 7.2.3.1
Patched versions
8.1.2.1
8.0.4.1
7.2.3.1
Description
Published to the GitHub Advisory Database
Mar 23, 2026
Reviewed
Mar 23, 2026
Published by the National Vulnerability Database
Mar 24, 2026
Last updated
May 13, 2026
Impact
Active Storage's
DirectUploadsControlleraccepts arbitrary metadata from the client and persists it on the blob. Because internal flags likeidentifiedandanalyzedare stored in the same metadata hash, a malicious direct-upload client could set these flags.Releases
The fixed releases are available at the normal locations.
Credit
This was responsible reported by Hackerone researcher pwnie
References