XSS vulnerability in GraphQL Playground
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
GraphQL Playground is a GraphQL IDE for development of graphQL focused applications. All versions of graphql-playground-react older than [email protected] 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| graphql | graphql-playground | before 1.7.28 | 1.7.28 | Patch available | CNA |
| — | graphql-playground-react (npm) | before 1.7.28 | 1.7.28 | Patch available | GHSA-59r9-6jp6-jcm7 |
- graphql-playground Vendorgraphql Affected before 1.7.28 Fixed in 1.7.28 Patch available CNA
- graphql-playground-react (npm) Vendor— Affected before 1.7.28 Fixed in 1.7.28 Patch available GHSA-59r9-6jp6-jcm7
Remediation
- Fix · CNA graphql-playground (graphql) Fixed in 1.7.28
- Fix · GHSA-59r9-6jp6-jcm7 graphql-playground-react (npm) Fixed in 1.7.28 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41249
- 2026-10-03 Alias added: GHSA-59r9-6jp6-jcm7
References
Patch 1
Advisory 3
Sources
- CVE-2021-41249 · CVE Program
- CVE-2021-41249 · NVD
- FIRST EPSS
- GHSA-59r9-6jp6-jcm7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences