4.6medium
Craft CMS - Stored XSS via User Group Name in User Permissions Page
- Severity
- 4.6medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-g3hp-vvqf-8vw6
Description
Craft CMS from version 5.0.0-RC1 contains a stored cross-site scripting vulnerability in the User Permissions page where user group names are rendered without proper HTML escaping. Attackers with admin access can inject arbitrary JavaScript via the user group name field that executes when other users view or edit permissions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | from 5.0.0-RC1 before 5.8.22 Not affected: 5.8.22 | CVE List |
| craftcms/cms (Packagist) | from 5.0.0-RC1 before 5.8.22 | GitHub Advisory Database |
All scores
| VulnCheck | 4.6medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| GitHub | low CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Craft CMS from version 5.0.0-RC1 contains a stored cross-site scripting vulnerability in the User Permissions page where user group names are rendered without proper HTML escaping. Attackers with admin access can inject arbitrary JavaScript via the user group name field that executes when other users view or edit permissions.
GitHub Advisory Database
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:
<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
NVD (es)
Craft CMS a partir de la versión 5.0.0-RC1 contiene una vulnerabilidad de cross-site scripting almacenado en la página de Permisos de Usuario, donde los nombres de los grupos de usuarios se renderizan sin el escape HTML adecuado. Atacantes con acceso de administrador pueden inyectar JavaScript arbitrario a través del campo de nombre del grupo de usuarios que se ejecuta cuando otros usuarios ven o editan los permisos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56381 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g3hp-vvqf-8vw6 changed 2026-08-06 | CC-BY-4.0 |
| NVD | CVE-2026-56381 changed 2026-10-25 | Public domain |