Advisories for Npm/@Studiocms/S3-Storage package

2026

StudioCMS S3 Storage Manager Authorization Bypass via Missing `await` on Async Auth Check

The S3 storage manager's isAuthorized() function is declared async (returns Promise<boolean>) but is called without await in both the POST and PUT handlers. Since a Promise object is always truthy in JavaScript, !isAuthorized(type) always evaluates to false, completely bypassing the authorization check. Any authenticated user with the lowest visitor role can upload, delete, rename, and list all files in the S3 bucket.