craftcms/cms
Affected
- introduced
5.0.0-RC1, fixed5.9.14(ecosystem)
Fixed versions
5.9.14
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-56385
Craft CMS: Authorized asset "preview file" requests bypass allows users without asset access to retrieve private preview metadata
Summary
An authenticated low-privileged user can call assets/preview-file for 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 though canView was false for the attacker account.
Details
assets/preview-file accepts a maliciously controlled assetId and renders preview output.This affects Craft installations with authenticated users of mixed privilege levels with private assets.
Resources
Low Basis: The source's own band: LOW
5.0.0-RC1, fixed 5.9.14 (ecosystem)5.9.14
The export has no generic command for this ecosystem.
4.0.0-RC1, fixed 4.17.8 (ecosystem)4.17.8
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0