# CVE-2021-41249: XSS vulnerability in GraphQL Playground

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-11-04T20:05:12.000Z
- Modified: 2026-06-17T04:08:10.460Z
- Also known as: GHSA-59r9-6jp6-jcm7
- Related: CVE-2021-41248
- Weaknesses: CWE-79
- 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 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.

(As written by CVE List.)

## Affected

- graphql graphql-playground: < 1.7.28
- graphql-playground-react (npm): before 1.7.28
- graphql playground: before 1.7.28

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/graphql/graphql-playground/security/advisories/GHSA-59r9-6jp6-jcm7> (third-party-advisory, web)
- <https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8> (not-applicable, third-party-advisory, web)
- <https://github.com/graphql/graphql-playground/commit/b8a956006835992f12c46b90384a79ab82bcadad> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41249> (advisory)
- <https://github.com/graphql/graphiql/blob/main/docs/security/2021-introspection-schema-xss.md#2-more-details-on-the-vulnerability> (web)
- <https://github.com/graphql/graphql-playground> (package)

## Sources

- CVE List: [CVE-2021-41249](https://www.cve.org/CVERecord?id=CVE-2021-41249), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-59r9-6jp6-jcm7](https://github.com/advisories/GHSA-59r9-6jp6-jcm7), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-41249](https://nvd.nist.gov/vuln/detail/CVE-2021-41249), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41249 · Whole record: https://cve.day/CVE-2021-41249.json · Rebuilt by cve.day 2026-11-25T22:58:05.358Z
