Vulnerability DatabaseGHSA-qm7x-rc44-rrqw

GHSA-qm7x-rc44-rrqw
JavaScript vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in GraphQL Playground, as distributed by Apollo Server, identified as GHSA-qm7x-rc44-rrqw and CVE-2021-41249. The vulnerability affects Apollo Server versions 2.0.0 to 2.25.2 and 3.0.0 to 3.4.0, with the issue being patched in versions 2.25.3 and 3.4.1. The vulnerability was discovered by Ry0taK and was published on November 4, 2021 (GitHub Advisory).

Technical details

The vulnerability exists in configurations where Apollo Server serves the client-side web app 'GraphQL Playground' from the same web server that executes GraphQL operations. The web app has access to cookies and other credentials associated with the web server's operations. The vulnerability allows for arbitrary JavaScript code execution in the web server's origin through specially crafted links to the GraphQL Playground page. In Apollo Server 2, GraphQL Playground is served by default unless NODE_ENV is set to production, while in Apollo Server 3, it's only vulnerable when explicitly using the ApolloServerPluginLandingPageGraphQLPlayground plugin (GitHub Advisory).

Impact

When exploited, this vulnerability allows attackers to steal cookies and other private browser data when users click on specially crafted links to the GraphQL Playground page. The impact is particularly severe if the GraphQL server's origin URL is used to store sensitive data such as cookies (GitHub Advisory).

Mitigation and workarounds

Several mitigation approaches are available: 1) Upgrade to Apollo Server 2.25.3 or 3.4.1, 2) Configure the current version to serve the latest version of GraphQL Playground (1.7.42) by adding the version option, or 3) Disable GraphQL Playground entirely. For Apollo Server 3, remove the ApolloServerPluginLandingPageGraphQLPlayground from the plugins array. For Apollo Server 2, set playground: false in the ApolloServer constructor (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management