Cross-site Request Forgery (CSRF) Affecting @apollo/explorer package, versions <3.7.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-APOLLOEXPLORER-13110032
  • published28 Sept 2025
  • disclosed26 Sept 2025
  • creditekzyis, 0x9x-ui

Introduced: 26 Sep 2025

CVE-2025-59845  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade @apollo/explorer to version 3.7.3 or higher.

Overview

@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.

CVSS Base Scores

version 4.0
version 3.1