apollo-server-core vulnerable to URL-based XSS attack affecting IE11 on default landing page
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
pluginsoption ofnew ApolloServer. - You pass
ApolloServerPluginLandingPageLocalDefault()orApolloServerPluginLandingPageProductionDefault()to thepluginsoption ofnew ApolloServer.
Browsers visiting your server are NOT affected if ANY of these apply:
- You pass
ApolloServerPluginLandingPageDisabled()to thepluginsoption ofnew ApolloServer. - You pass
ApolloServerPluginLandingPageGraphQLPlayground()to thepluginsoption ofnew ApolloServer. - You pass a custom plugin implementing the
renderLandingPagehook to thepluginsoption ofnew 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:
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:
- Open an issue in the Apollo Server repository
- Email us at security@apollographql.com
Credits
This issue was discovered by Adrian Denkiewicz of Doyensec.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | apollo-server-core | >= 3.0.0, < 3.10.1 | 3.10.1 |
Verweise
- Schwäche (CWE)
CWE-79- Plattform
- npm
- Paket
apollo-server-core- Veröffentlicht
- 18.08.2022
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-2fvv-qxrq-7jq6 - CC BY 4.0
Schwachstellenhistorie: apollo-server-core
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 5
- Erste → letzte
- 06.2020 03.2026
- Ohne Fix
- 1
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Mittel 4
- Niedrig 1
Veröffentlichungen pro Jahr
- 2020: 1
- 2021: 0
- 2022: 2
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 1
-
apollo-server-core vulnerable to URL-based XSS attack affecting IE11 on default landing page dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.