@apollo/explorer@3.7.0

This repo hosts the source for Apollo Studio's Embeddable Explorer

  • latest version

    3.7.4

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    8 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @apollo/explorer package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Cross-site Request Forgery (CSRF)

    @apollo/explorer is a This repo hosts the source for Apollo Studio's Embeddable Explorer

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via missing origin validation in the window.postMessage process. An attacker can execute unauthorized GraphQL queries or mutations on behalf of an authenticated user by tricking the victim into visiting a malicious website that forges messages to the embedding page. The attack leverages the victim's browser context and authentication cookies to perform actions with the victim's privileges.

    ##Workaround

    This vulnerability can be mitigated by ensuring that production deployments set the environment variable NODE_ENV=production to avoid unintentionally serving embedded Sandbox.

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

    Upgrade @apollo/explorer to version 3.7.3 or higher.

    <3.7.3