Description
Strapi versions 4.x through 4.26.2 and 5.x before 5.48.1 contain a stored cross-site scripting vulnerability in the content manager WYSIWYG preview component that fails to strip script tags from rich text. An Author-role user can store malicious script tags in rich text fields that execute in an Editor or Super Admin's session when the preview pane is expanded, enabling account takeover.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strapi | strapi | 4.0.0 – ≤ 4.26.2, 5.0.0 – < 5.48.1 | 5.48.1 |
Advisories 1
- WID-SEC-2026-3324 Strapi: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Sep 13, 2026
References
- GitHub Issue #26857 issue-tracking
- https://github.com/strapi/strapi product
- https://github.com/strapi/strapi/blob/v5.46.0/packages/core/content-manager/admin/src/pages/EditView/components/FormInputs/Wysiwyg/PreviewWysiwyg.tsx technical-description
- https://github.com/strapi/strapi/commit/875752612c30f951546904a29469e51e17e0ac37 patch
- VulnCheck Advisory: Strapi 4.x through 4.26.2 and 5.x before 5.48.1 Stored XSS via WYSIWYG third-party-advisory