GitHub Advisoryadvisory · Packagist
GHSA-g3hp-vvqf-8vw6 Craft CMS Vulnerable to Stored XSS via User Group Name in User Permissions Page
LOW
Official page ↗
- Aliases
- CVE-2026-56381
- Ecosystem
- Packagist
- Packages
- craftcms/cms
- Severity
- Low
- 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
- Weaknesses
- CWE-79
- Reviewed
- 2026-03-11
Affected packages
• Packagist craftcms/cms: >= 5.0.0-RC1, < 5.8.22 → fixed in 5.8.22
Description
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
• `allowAdminChanges` is enabled in production, which is against our security recommendations.
Steps to Reproduce
1. Log in to the control panel as an admin
2. Navigate to Settings → Users → User Groups
3. Create or edit a user group and set the Name field to:
```html
```
4. Save the user group
5. Navigate to Users and edit any user (`/admin/users/{id}`)
6. Click on the Permissions tab
7. XSS executes
Mitigation
Sanitize user group names when rendering in the user permissions template.
References
https://github.com/craftcms/cms-ghsa-4mgv-366x-qxvx/pull/2
Related
Alias · CVE (1)
- CVE-2026-56381 Craft CMS from version 5.0.0-RC1 contains a stored cross-site scripting vulnerability in the User Permissions page where user group names… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/craftcms/cms/security/advisories/GHSA-g3hp-vvqf-8vw6 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-56381 advisory
- https://github.com/craftcms/cms package
- https://github.com/craftcms/cms/releases/tag/5.8.22 web
- https://www.vulncheck.com/advisories/craft-cms-stored-xss-via-user-group-name-in-user-permissions-page web