GHSA-4W9W-3X96-7GHP
PII disclosure with GraphQL native user relations
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4W9W-3X96-7GHP divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft’s GraphQL schemas are scoped per user group, and the top-level `users` query correctly enforces that scope.
However, the native element→User relations — `author`, `authors`, `uploader`, `draftCreator`, `revisionCreator` — resolve directly off the source element with no user-group scope filter. A token (or the public schema) scoped to read-only user group A can therefore read the `username`, `email`, and `fullName` of any content author or uploader — including the site administrator.
## Root cause
- `src/helpers/Gql.php` `canQueryUsers()` only checks that *some* `usergroups.*:read` scope exists — not *which* group.
- User-group filtering is applied only in the top-level user resolver (`src/gql/resolvers/elements/User.php`) and custom Users fields (`src/gql/fields/Users.php`).
- The native User relations are treated as "special eager-load nodes" in `src/gql/ElementQueryConditionBuilder.php` (L 292) and never receive `getEagerLoadingGqlConditions()` (which is applied only to custom content fields, L 456). They resolve straight off `$source->author` in `src/gql/base/ObjectType.php` (L 72), with no scope constraint.
Impact
A GraphQL token intended for a narrow purpose — e.g., a headless front-end or a partner integration scoped to read blog content and one user group — can read the email addresses, usernames, and full names of every content author and uploader across the site.
Report ID: 1543
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.11.0 | — | — |
5.11.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-4w9w-3x96-7ghpLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
