GHSA-47QC-HRX3-R993
CSRF via window.postMessage origin-validation bypass in Apollo Embedded Sandbox and Explorer
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 2.7.2 | @apollo/sandbox · -7 d desde divulgación | |
| Remediación | Parche 3.7.3 | @apollo/explorer · -7 d desde divulgación | |
| Divulgación | Publicada | GHSA-47QC-HRX3-R993 divulgada · CVSS 8.2 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Impact
A Cross-Site Request Forgery (CSRF) vulnerability was identified in Apollo’s Embedded Sandbox and Embedded Explorer.
The vulnerability arises from missing origin validation in the client-side code that handles `window.postMessage` events. A malicious website can send forged messages to the embedding page, causing the victim’s browser to execute arbitrary GraphQL queries or mutations against their GraphQL server while authenticated with the victim’s cookies.
This vulnerability was present when Apollo Server ran with embedded Sandbox or Explorer enabled. Embedded Sandbox is enabled by default when `NODE_ENV` is not set to `production`, and embedded Sandbox and Explorer can also be enabled in production mode via landing page plugins https://www.apollographql.com/docs/apollo-server/api/plugin/landing-pages.
Apollo Server's support for embedded Sandbox and Explorer serves the vulnerable code from Apollo's CDN. Apollo has already mitigated the vulnerability by updating its CDN. No action is necessary to mitigate this vulnerability for users of Apollo Server.
For more information on this vulnerability, see the main advisory https://github.com/apollographql/embeddable-explorer/security/advisories/GHSA-w87v-7w53-wwxv.
(This advisory affected all versions of Apollo Server when configured to serve embedded Sandbox or Explorer, but no upgrade is required to fix it. The GHSA "affected products" field does not allow us to represent this or to leave it blank, so this GHSA lists `@apollo/sandbox` and `@apollo/explorer` as affected products rather than `@apollo/server`; technically speaking, these npm packages are not dependencies of `@apollo/server`.)
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@apollo/sandbox |
Corregida | 2.7.2 | -7 d | 2.7.4 no afectada |
npm@apollo/explorer |
Corregida | 3.7.3 | -7 d | 3.7.4 no afectada |
2.7.23.7.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/apollographql/apollo-server/security/advisories/GHSA-47qc-hrx3-r993Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
