apollo-server@2.16.0 vulnerabilities

Production ready GraphQL Server

Direct Vulnerabilities

Known vulnerabilities in the apollo-server package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Request Forgery (CSRF)

apollo-server is a Production ready GraphQL Server

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) if the server uses graphql-upload and SameSite=None cookies for authentication. JS on any origin will then cause browsers to send cookie-authenticated mutations to the GraphQL server, which will be executed without checking the CORS policy first.

How to fix Cross-site Request Forgery (CSRF)?

Upgrade apollo-server to version 2.25.4 or higher.

>=2.0.0 <2.25.4
  • H
Cross-site Scripting (XSS)

apollo-server is a Production ready GraphQL Server

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Compromised HTTP schema introspection responses or schema prop values with malicious GraphQL type names, may expose a dynamic XSS attack surface that can allow code injection on operation autocomplete.

How to fix Cross-site Scripting (XSS)?

Upgrade apollo-server to version 2.25.3, 3.4.1 or higher.

<2.25.3 >=3.0.0 <3.4.1