craftcms/cms
Affected
- introduced
5.0.0-RC1, fixed5.8.22(ecosystem)
Fixed versions
5.8.22
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-56381
Craft CMS Vulnerable to Stored XSS via User Group Name in User Permissions Page
Summary
A stored XSS vulnerability exists in the User Permissions page. The User Group name is rendered without proper HTML escaping in the permissions section, allowing an attacker to execute arbitrary JavaScript when another user views or edits a user's permissions.
> [!NOTE]
> This is a separate vulnerability from the previously reported "Stored XSS via User Group Name in User Settings Page" and "Multiple Stored XSS in User Group Edit Page". This affects a different sink: the individual user's permissions page.
Proof of Concept
Required Permissions
allowAdminChanges is enabled in production, which is against our security recommendations.Steps to Reproduce
html <img src=x onerror="alert('XSS')" hidden> /admin/users/{id})Mitigation
Sanitize user group names when rendering in the user permissions template.
References
https://github.com/craftcms/cms-ghsa-4mgv-366x-qxvx/pull/2
Low Basis: The source's own band: LOW
5.0.0-RC1, fixed 5.8.22 (ecosystem)5.8.22
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