Media

apollo-server-core vulnerable to URL-based XSS attack affecting IE11 on default landing page

  • Publicada: 18.08.2022
  • Actualizado: 11.10.2026 10:22

Impact

The default landing page contained HTML to display a sample curl command which is made visible if the full landing page bundle could not be fetched from Apollo's CDN. The server's URL is directly interpolated into this command inside the browser from window.location.href. On some older browsers such as IE11, this value is not URI-encoded. On such browsers, opening a malicious URL pointing at an Apollo Router could cause execution of attacker-controlled JavaScript.

This only affects Apollo Server with the default landing page enabled. Old browsers visiting your server may be affected if ANY of these apply:

  • You do not pass any landing page plugin to the plugins option of new ApolloServer.
  • You pass ApolloServerPluginLandingPageLocalDefault() or ApolloServerPluginLandingPageProductionDefault() to the plugins option of new ApolloServer.

Browsers visiting your server are NOT affected if ANY of these apply:

  • You pass ApolloServerPluginLandingPageDisabled() to the plugins option of new ApolloServer.
  • You pass ApolloServerPluginLandingPageGraphQLPlayground() to the plugins option of new ApolloServer.
  • You pass a custom plugin implementing the renderLandingPage hook to the plugins option of new ApolloServer.

This issue was introduced in v3.0.0 when the landing page feature was added.

Patches

To avoid this, the sample curl command has been removed in release 3.10.1.

Workarounds

Disabling the landing page removes the possibility of exploit:

ts
import { ApolloServerPluginLandingPageDisabled } from 'apollo-server-core';

new ApolloServer({
  plugins: [ApolloServerPluginLandingPageDisabled()],
  // ...
});

See also

A similar issue exists in the landing page of Apollo Router. See the corresponding Apollo Router security advisory.

For more information

If you have any questions or comments about this advisory:

Credits

This issue was discovered by Adrian Denkiewicz of Doyensec.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm apollo-server-core >= 3.0.0, < 3.10.1 3.10.1

Referencias

Puntuación CVSS -
Debilidad (CWE)
CWE-79
Plataforma
npm
Paquete
apollo-server-core
Publicada
18.08.2022
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-2fvv-qxrq-7jq6 - CC BY 4.0

Historial de vulnerabilidades: apollo-server-core

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
5
Primera → última
06.2020 03.2026
Sin corrección
1
Explotada en ataques
0

Distribución por gravedad

  • Media 4
  • Baja 1

Divulgaciones por año

  1. 2020: 1
  2. 2021: 0
  3. 2022: 2
  4. 2023: 1
  5. 2024: 0
  6. 2025: 0
  7. 2026: 1
  1. Baja ghsa-j5g3-5c8r-7qfx >= 3.0.0, < 3.12.1, < 2.26.1 3.12.1, 2.26.1
  2. Media ghsa-8r69-3cvp-wxc3 >= 3.0.0, < 3.11.0 3.11.0
  3. apollo-server-core vulnerable to URL-based XSS attack affecting IE11 on default landing page esta entrada
    Media ghsa-2fvv-qxrq-7jq6 >= 3.0.0, < 3.10.1 3.10.1
  4. Media ghsa-w42g-7vfc-xf37 < 2.14.2 2.14.2

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.