Live threats

All CVEs / Prisma

CVE-2020-4038Prisma Graphql-playground-html

High 7.4 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Graphql-playground-html.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
prismagraphql-playground-html< 1.6.22
prismagraphql-playground-middleware-express< 1.7.16
prismagraphql-playground-middleware-hapi< 1.6.13
prismagraphql-playground-middleware-koa< 1.6.15
prismagraphql-playground-middleware-lambda< 1.7.17

Official sources

References

Links published by the sources. Open them with care.