Description
Statamic is a Laravel and Git powered content management system (CMS). Prior to 5.74.0 and 6.20.3, the Live Preview endpoint for existing entries and terms in src/Http/Controllers/CP/PreviewController.php only checked view authorization, but it accepts and renders caller-supplied field values. A Control Panel user with view but not edit permission could therefore submit content they were not authorized to author and generate a shareable Live Preview URL rendering it. This issue is fixed in versions 5.74.0 and 6.20.3.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| statamic | cms | < 5.74.0, >= 6.0.0, < 6.20.3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | statamic/cms | < 5.74.0 | 5.74.0 | GHSA-7mqq-4v55-88gh |
| Packagist | statamic/cms | >= 6.0.0, < 6.20.3 | 6.20.3 | GHSA-7mqq-4v55-88gh |
References
- https://github.com/statamic/cms/security/advisories/GHSA-7mqq-4v55-88gh
- https://github.com/statamic/cms/pull/14791
- https://github.com/statamic/cms/commit/87b9998f4d9e40de53346402ccf6eb3c17ba168f
- https://github.com/statamic/cms/releases/tag/v5.74.0
- https://github.com/statamic/cms/releases/tag/v6.20.3