7.4
CWE
79
Advisory Published
Updated

CVE-2020-4038: Reflected XSS in GraphQL Playground

First published: Mon Jun 08 2020(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
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<1.7.17

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2020-4038?

    CVE-2020-4038 has a severe severity rating due to its risk of allowing XSS reflection attacks.

  • How do I fix CVE-2020-4038?

    To fix CVE-2020-4038, upgrade to graphql-playground-html version 1.6.22 or later.

  • What types of applications are affected by CVE-2020-4038?

    CVE-2020-4038 affects applications using the graphql-playground-html, graphql-playground-middleware-express, graphql-playground-middleware-hapi, graphql-playground-middleware-koa, and graphql-playground-middleware-lambda packages.

  • What kind of vulnerability is CVE-2020-4038?

    CVE-2020-4038 is an XSS reflection attack vulnerability due to unsanitized user input in the renderPlaygroundPage() method.

  • Who should be concerned about CVE-2020-4038?

    Developers and organizations using the affected versions of the Prisma GraphQL Playground packages should address CVE-2020-4038 immediately.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203