CVE-2026-56385: Craft CMS Authorization Bypass in Asset Preview Endpoint
Craft CMS contains a flaw that allows authenticated users with limited permissions to view preview data for assets they shouldn't have access to. An attacker with a low-privilege account can request a preview of restricted assets by manipulating the assetId parameter, receiving both preview HTML and a private image route that exposes the target asset. The vulnerability affects Craft CMS 5.0.0-RC1 through 5.9.13 and 4.0.0-RC1 through 4.17.7. Patch versions 5.9.14 and 4.17.8 resolve the issue.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-639
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-21 / 2026-06-22
NVD description (verbatim)
Craft CMS versions >= 5.0.0-RC1, <= 5.9.13 and >= 4.0.0-RC1, <= 4.17.7 contain an authorization bypass in the assets/preview-file endpoint. The action does not enforce per-asset view authorization before returning preview content, allowing an authenticated low-privileged user to supply a controlled assetId for an asset they are not permitted to view and still receive preview response data (previewHtml), including a private preview image route containing the target private assetId. Fixed in 5.9.14 and 4.17.8.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The assets/preview-file endpoint in Craft CMS lacks per-asset authorization checks before returning preview content. Although the endpoint requires user authentication (PR:L), it fails to verify that the authenticated user has view permissions on the specific asset identified by the assetId parameter. When a request is processed, the endpoint returns previewHtml and constructs a private preview image route containing the target assetId, effectively leaking both metadata and access paths to unauthorized assets. This authorization bypass exists in both the 5.x and 4.x maintenance branches through the specified patch dates.
Business impact
The vulnerability exposes sensitive asset content (images, documents, or other media) to authenticated users who lack permission to view them. Organizations using Craft CMS for content management with role-based access controls may have confidential or proprietary assets inadvertently exposed to internal users with lower privilege levels. The impact is limited to information disclosure—no data modification or denial of service is possible—but can compromise content confidentiality if assets contain sensitive information. The requirement for prior authentication raises the barrier to exploitation, reducing risk for organizations with strong access controls.
Affected systems
Craft CMS versions 5.0.0-RC1 through 5.9.13 and 4.0.0-RC1 through 4.17.8 are affected. The vulnerability spans both major version lines actively in use. Organizations running Craft CMS should check their current version against these ranges. Version 5.9.14 and 4.17.8 (and later) contain the fix.
Exploitability
Exploitation requires an authenticated Craft CMS user account with any privilege level above complete guest access. An attacker does not need network complexity or user interaction—a direct API request with a target assetId is sufficient. The attack is straightforward: an authenticated low-privileged user crafts a request to assets/preview-file with an assetId for a restricted asset, receives the preview response, and gains access to preview HTML and private image routes. No account privilege escalation, complex chaining, or social engineering is necessary beyond gaining initial authentication. This makes it a risk for multi-tenant or team-based Craft CMS deployments where user accounts are widely distributed.
Remediation
Organizations should upgrade to Craft CMS 5.9.14 or 4.17.8 (or later versions in each branch) immediately. Both versions apply authorization checks to the assets/preview-file endpoint before returning preview data. Verify the patch version in your Craft CMS installation via the control panel or by inspecting the version constant in the codebase. For organizations unable to patch immediately, consider restricting API access to the assets/preview-file endpoint via reverse proxy or WAF rules to trusted client IP ranges or authentication tokens, although this is a temporary measure pending patching.
Patch guidance
Craft CMS 5.x users should upgrade to 5.9.14 or later. Craft CMS 4.x users should upgrade to 4.17.8 or later. Both patches are maintenance releases and should be low-risk deployments. Before patching production, test in a staging environment to ensure compatibility with any custom plugins or extensions that may interact with asset preview functionality. Review release notes for any breaking changes, though authorization-focused patches typically carry minimal compatibility risk. Consider scheduling patches during a maintenance window if your CMS hosts time-sensitive content workflows.
Detection guidance
Monitor authentication logs for authenticated users accessing the assets/preview-file endpoint with assetIds they do not own or have not been granted access to. Examine request patterns for repeated attempts to enumerate assetIds outside the requester's normal workflow. Log analysis tools or a SIEM can flag requests to this endpoint from low-privilege accounts accessing a diverse range of asset identifiers. Additionally, review access logs for requests that return 200 OK responses to asset preview requests by users without documented asset view permissions. Conduct a post-incident audit of asset preview access logs to identify if unauthorized previews have been retrieved.
Why prioritize this
Although this is a MEDIUM-severity vulnerability, prioritization depends on your Craft CMS deployment model. Organizations with multi-user Craft CMS instances where sensitive content is stored and access control is enforced should patch promptly, as the low barrier to exploitation means any authenticated internal or contract user can probe for restricted assets. Single-administrator or small-team CMS deployments face lower practical risk. The lack of KEV status (not yet in active exploitation databases) provides a short window before broad awareness; patching sooner rather than later is prudent.
Risk score, explained
CVSS 3.1 score of 4.3 (MEDIUM) reflects low attack complexity, low privilege requirements for an attacker, and limited impact (confidentiality only, no integrity or availability). The score appropriately captures that exploitation is straightforward and requires only authentication, but the impact is restricted to information disclosure. Organizations should not discount this as 'low risk' simply because the CVSS score is below 5.0; in contexts where asset confidentiality is critical, the practical impact may warrant urgent patching.
Frequently asked questions
Can an unauthenticated user exploit this vulnerability?
No. The vulnerability requires an authenticated Craft CMS user account. Unauthenticated attackers cannot reach the vulnerable endpoint. However, in organizations where user accounts are freely created or shared, this requirement is a low barrier.
Does the vulnerability allow an attacker to modify or delete restricted assets?
No. The vulnerability is limited to information disclosure—specifically, preview HTML and private image routes. An attacker cannot modify, delete, or otherwise alter assets. Integrity and availability are not affected.
Do both Craft CMS 4.x and 5.x versions need to be patched?
If your organization runs both versions (e.g., legacy 4.x projects alongside newer 5.x), yes—patch each to its respective fixed version: 4.17.8+ and 5.9.14+. The vulnerability exists in both branches and requires separate updates.
How can I verify if our Craft CMS instance has been exploited?
Check asset preview access logs for requests from low-privilege users accessing assetIds outside their known roles or workflows. Review Craft CMS user activity logs and examine whether unauthorized asset preview responses were generated. If you have a SIEM or log aggregation tool, search for assets/preview-file endpoint calls with unusual assetId patterns or high-frequency enumeration behavior.
This analysis is based on the published CVE description and CVSS vector as of the modification date. SEC.co does not verify the accuracy of vendor claims or provide warranty regarding patch effectiveness. Organizations should validate patch versions and test in non-production environments before deployment. Exploit code or detailed attack methodology is not provided. For vendor-specific guidance, consult the official Craft CMS security advisories and release notes. This intelligence is offered as-is for risk assessment purposes and does not constitute professional security advice for your specific environment. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2023-40200MEDIUMWP Logo Showcase Authorization Bypass Vulnerability (CVSS 5.3)
- CVE-2025-15657MEDIUMUnauthenticated IDOR in School Management – Patch Guidance
- CVE-2026-10023MEDIUMDokan WooCommerce Plugin Order Tampering Vulnerability
- CVE-2026-10038MEDIUMCharitable WordPress Plugin IDOR Arbitrary Attachment Deletion Vulnerability
- CVE-2026-10154MEDIUMDolibarr ERP CRM Authorization Bypass in Messaging Module
- CVE-2026-10212MEDIUMAstrBot 4.24.2 Authorization Bypass via Session ID Manipulation
- CVE-2026-10597MEDIUMOMICARD EDM Unauthenticated Email Disclosure Vulnerability
- CVE-2026-10623MEDIUMPressPrimer Quiz IDOR Vulnerability – Patch Guidance for WordPress Educators