Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. graphql-playground-react
  4. ›
  5. CVE-2021-41249

CVE-2021-41249: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

November 4, 2021 (updated November 9, 2021)

GraphQL Playground is a GraphQL IDE for development of graphQL focused applications. All versions of graphql-playground-react are vulnerable to compromised HTTP schema introspection responses or schema prop values with malicious GraphQL type names, exposing a dynamic XSS attack surface that can allow code injection on operation autocomplete. In order for the attack to take place, the user must load a malicious schema in graphql-playground.

References

  • github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8
  • github.com/graphql/graphql-playground/security/advisories/GHSA-59r9-6jp6-jcm7
  • nvd.nist.gov/vuln/detail/CVE-2021-41249

Code Behaviors & Features

Detect and mitigate CVE-2021-41249 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.28

Fixed versions

  • 1.7.28

Solution

Upgrade to version 1.7.28 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/graphql-playground-react/CVE-2021-41249.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.