# CVE-2020-4038: Reflected XSS in GraphQL Playground

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`
- 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): 7.24%, higher than 94% of CVEs (2026-12-01)
- Published: 2020-06-08T20:40:12.000Z
- Modified: 2026-07-08T05:59:49.227Z
- Also known as: GHSA-4852-vrh7-28rf
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

GraphQL Playground (graphql-playground-html NPM package) before version 1.6.22 have a severe XSS Reflection attack vulnerability. All unsanitized user input passed into renderPlaygroundPage() method could trigger this vulnerability. This has been patched in graphql-playground-html version 1.6.22. Note that some of the associated dependent middleware packages are also affected including but not limited to graphql-playground-middleware-express before version 1.7.16, graphql-playground-middleware-koa before version 1.6.15, graphql-playground-middleware-lambda before version 1.7.17, and graphql-playground-middleware-hapi before 1.6.13.

(As written by CVE List.)

## Affected

- prisma-labs graphql-playground: < 1.6.22
- graphql-playground-html (npm): before 1.6.22
- prisma graphql-playground-html: before 1.6.22
- prisma graphql-playground-middleware-express: before 1.7.16
- prisma graphql-playground-middleware-hapi: before 1.6.13
- prisma graphql-playground-middleware-koa: before 1.6.15
- prisma graphql-playground-middleware-lambda: before 1.7.17

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf> (mitigation, third-party-advisory, web)
- <https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7> (patch, third-party-advisory, web)
- <https://github.com/prisma-labs/graphql-playground#security-details> (third-party-advisory, web)
- <https://github.com/graphql/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-4038> (advisory)

## Sources

- CVE List: [CVE-2020-4038](https://www.cve.org/CVERecord?id=CVE-2020-4038), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4852-vrh7-28rf](https://github.com/advisories/GHSA-4852-vrh7-28rf), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-4038](https://nvd.nist.gov/vuln/detail/CVE-2020-4038), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-4038 · Whole record: https://cve.day/CVE-2020-4038.json · Rebuilt by cve.day 2026-11-25T22:57:52.764Z
