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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
strapi strapi
Default version status: unaffected
4.0.0 to ≤ 4.26.2affected5.0.0 to < 5.48.1affected
pkg:npm/%40strapi/strapiReferences
- https://github.com/strapi/strapi/issues/26857 ↗
- https://github.com/strapi/strapi ↗
- https://github.com/strapi/strapi/blob/v5.46.0/packages/core/content-manager/admin/src/pages/EditView/components/FormInputs/Wysiwyg/PreviewWysiwyg.tsx ↗
- https://github.com/strapi/strapi/commit/875752612c30f951546904a29469e51e17e0ac37 ↗
- https://www.vulncheck.com/advisories/strapi-4-x-through-4.26.2-and-5-x-before-5.48.1-stored-xss-via-wysiwyg ↗