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
- Admin access
allowAdminChangesis enabled in production, which is against our security recommendations.
Steps to Reproduce
- Log in to the control panel as an admin
- Navigate to Settings → Users → User Groups
- Create or edit a user group and set the Name field to:
html
<img src=x onerror="alert('XSS')" hidden> - Save the user group
- Navigate to Users and edit any user (
/admin/users/{id}) - Click on the Permissions tab
- XSS executes
Mitigation
Sanitize user group names when rendering in the user permissions template.
References
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | craftcms/cms | >= 5.0.0-RC1, < 5.8.22 | 5.8.22 |
References
- https://github.com/craftcms/cms/security/advisories/GHSA-g3hp-vvqf-8vw6
- https://nvd.nist.gov/vuln/detail/CVE-2026-56381
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/5.8.22
- https://www.vulncheck.com/advisories/craft-cms-stored-xss-via-user-group-name-in-user-permissions-page
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
craftcms/cms- Disclosed
- 11.03.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g3hp-vvqf-8vw6 - CC BY 4.0
Vulnerability history: craftcms/cms
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 127
- First → latest
- 07.2021 08.2026
- Without a fix
- 6
- Exploited in attacks
- 4
Severity breakdown
- Critical 9
- High 41
- Medium 65
- Low 12
Disclosures per year
- 2021: 3
- 2022: 22
- 2023: 13
- 2024: 9
- 2025: 6
- 2026: 74
-
Craft CMS Vulnerable to Stored XSS via User Group Name in User Permissions Page this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.