Craft CMS: Authorized asset "preview file" requests bypass allows users without asset access to retrieve private preview metadata
Package
Affected versions
>= 5.0.0-RC1, <= 5.9.13
>= 4.0.0-RC1, <= 4.17.7
Patched versions
5.9.14
4.17.8
Description
Published to the GitHub Advisory Database
Mar 26, 2026
Reviewed
Mar 26, 2026
Last updated
Mar 26, 2026
Summary
An authenticated low-privileged user can call
assets/preview-filefor an asset they are not authorized to view and still receive preview response data (previewHtml) for that private asset.The returned preview HTML included a private preview image route containing the target private
assetId, even thoughcanViewwasfalsefor the attacker account.Details
assets/preview-fileaccepts a maliciously controlledassetIdand renders preview output.This affects Craft installations with authenticated users of mixed privilege levels with private assets.
Resources
References