CVE-2021-41249
XSS vulnerability in GraphQL Playground
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Timeline
ID reserved
By GitHub_M
- 50 days later
· 50 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L |
| NVDNVD · Modified | 3.1 | Medium4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.2% · top 31% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Weakness
Affected products
- affected < 1.7.28
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmgraphql-playground-reactGHSA-59r9-6jp6-jcm7 (opens in a new tab)
References (3)
- https://github.com/graphql/graphql-playground/security/advisories/GHSA-59r9-6jp6-jcm7 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/graphql/graphql-playground/commit/b8a956006835992f12c46b90384a79ab82bcadad (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-59r9-6jp6-jcm7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-41249)Record last updated .