CVE-2021-41249Graphql Playground
Medium 4.7 No auth needed
Follow: this CVE · Graphql · Graphql Playground We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 4.7
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Nov 4, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
GraphQL Playground is a GraphQL IDE for development of graphQL focused applications. All versions of graphql-playground-react older than graphql-playground-react@1.7.28 are vulnerable to compromised HTTP schema introspection responses or schema prop values with malicious GraphQL type names, exposing a dynamic XSS attack surface that can allow code injection on operation autocomplete. In order for the attack to take place, the user must load a malicious schema in graphql-playground. There are several ways this can occur, including by specifying the URL to a malicious schema in the endpoint query parameter. If a user clicks on a link to a GraphQL Playground installation that specifies a malicious server, arbitrary JavaScript can run in the user's browser, which can be used to exfiltrate user credentials or other harmful goals. If you are using graphql-playground-react directly in your client app, upgrade to version 1.7.28 or later.
What to do
- Apply the vendor's security update for Playground.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | graphql-playground-react |
< 1.7.28 |
1.7.28 |
npm install graphql-playground-react@1.7.28 |
Per OSV / GitHub Advisories (GHSA-59r9-6jp6-jcm7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| graphql | playground | < 1.7.28 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Not Applicable Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory