CVE-2020-4038Prisma Graphql-playground-html
High 7.4 No auth needed
Follow: this CVE · Prisma · Prisma Graphql-playground-html We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.4
- EPSS
- 7.2% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Jun 8, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Graphql-playground-html.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | graphql-playground-html |
< 1.6.22 |
1.6.22 |
npm install graphql-playground-html@1.6.22 |
Per OSV / GitHub Advisories (GHSA-4852-vrh7-28rf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prisma | graphql-playground-html | < 1.6.22 |
| prisma | graphql-playground-middleware-express | < 1.7.16 |
| prisma | graphql-playground-middleware-hapi | < 1.6.13 |
| prisma | graphql-playground-middleware-koa | < 1.6.15 |
| prisma | graphql-playground-middleware-lambda | < 1.7.17 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Mitigation Third Party Advisory