CVE-2020-4038
HIGH 7.4CVSS 3.1Reflected XSS in GraphQL Playground
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.
- Published
- 8 Jun 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-4852-vrh7-28rf
- Sources
- NVDJSONOSV GHSA-4852-vrh7-28rfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prisma | graphql-playground-htmlcpe:2.3:a:prisma:graphql-playground-html:*:*:*:*:*:node.js:*:* |
< 1.6.22 | 1.6.22 |
| NVD | prisma | graphql-playground-middleware-expresscpe:2.3:a:prisma:graphql-playground-middleware-express:*:*:*:*:*:node.js:*:* |
< 1.7.16 | 1.7.16 |
| NVD | prisma | graphql-playground-middleware-hapicpe:2.3:a:prisma:graphql-playground-middleware-hapi:*:*:*:*:*:node.js:*:* |
< 1.6.13 | 1.6.13 |
| NVD | prisma | graphql-playground-middleware-koacpe:2.3:a:prisma:graphql-playground-middleware-koa:*:*:*:*:*:node.js:*:* |
< 1.6.15 | 1.6.15 |
| NVD | prisma | graphql-playground-middleware-lambdacpe:2.3:a:prisma:graphql-playground-middleware-lambda:*:*:*:*:*:node.js:*:* |
< 1.7.17 | 1.7.17 |
| OSV | npm | graphql-playground-html | < 1.6.22 | 1.6.22 |
References
- https://github.com/prisma-labs/graphql-playground#security-details · 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/advisories/GHSA-4852-vrh7-28rf · Mitigation, 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
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 8 Jun 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Jun 2020)