Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-4038

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-4038
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:28 UTC · Revision 1

Source evidence

CVE-2020-4038

core-osv · Original source

Published 8 Jun 2020, 21:15 UTC

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.

osv:CVE-2020-4038
Complete source record
{
  "id": "c9bd465c2656261a1d5da259891f1e0275d9c00f4637f1d69fd6d494f0d16816",
  "url": "https://osv.dev/vulnerability/CVE-2020-4038",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-4038",
    "summary": "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.",
    "evidence": "osv:CVE-2020-4038",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-4038",
      "aliases": [
        "CVE-2020-4038",
        "GHSA-4852-vrh7-28rf"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/graphql/graphql-playground",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "220a7c19030fe15fc309082c3163b109a72a1551"
                },
                {
                  "fixed": "bf1883db538c97b076801a60677733816cb3cfb7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:prisma:graphql-playground-html:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.6.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bf1883db538c97b076801a60677733816cb3cfb7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.8.10",
            "v1.8.9",
            "v1.8.8",
            "v1.8.7",
            "v1.8.6",
            "v1.8.5",
            "v1.8.4",
            "v1.8.3",
            "v1.8.2",
            "v1.8.1",
            "v1.8.0",
            "v1.7.0",
            "v1.6.3",
            "1.6.2",
            "v1.6.1",
            "v1.6.0",
            "v1.5.9",
            "v1.5.8",
            "v1.5.7",
            "v1.5.6",
            "v1.5.5",
            "v1.5.4",
            "1.5.3",
            "v1.5.2",
            "v1.5.1",
            "v1.5.0",
            "v1.5.0-rc.5",
            "v1.5.0-rc.4",
            "v1.5.0-rc.2",
            "v1.5.0-rc.1",
            "v1.4.3",
            "v1.4.2",
            "v1.4.1",
            "v1.4.0",
            "v1.3.24",
            "v1.3.23",
            "v1.3.22",
            "v1.3.21",
            "v1.3.20",
            "v1.3.19",
            "v1.3.18",
            "v1.3.17",
            "v1.3.16",
            "v1.3.15",
            "v1.3.14",
            "v1.3.13",
            "v1.3.12",
            "v1.3.11",
            "v1.3.10",
            "v1.3.9",
            "v1.3.8",
            "1.3.8-beta.1",
            "v1.3.6",
            "v1.3.5",
            "v1.3.4",
            "v1.3.0",
            "v1.2.0",
            "v1.1.6",
            "v1.1.1",
            "v1.1.0",
            "v1.0.2-rc.1",
            "v1.0.2",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-4038.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:21.782660893Z",
      "provider": "osv",
      "references": [
        "https://github.com/prisma-labs/graphql-playground#security-details",
        "https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf",
        "https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:prisma:graphql-playground-middleware-express:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "prisma:graphql-playground-middleware-express",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.7.16"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:prisma:graphql-playground-middleware-hapi:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "prisma:graphql-playground-middleware-hapi",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.6.13"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:prisma:graphql-playground-middleware-koa:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "prisma:graphql-playground-middleware-koa",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.6.15"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:prisma:graphql-playground-middleware-lambda:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "prisma:graphql-playground-middleware-lambda",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.7.17"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-4038",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385178,
  "published_at": "2020-06-08T21:15:09.923+00:00"
}