PT-2026-26934 · Packagist · Craftcms/Cms
Publicado
2026-03-11
·
Atualizado
2026-03-11
CVSS v4.0
1.8
Baixa
| Vetor | AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
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
Correção
XSS
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Craftcms/Cms