Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Informational severity, with a CVSS score of 4.3, published 18 August 2022.
- Which products and versions are affected?
- apollo-server-core (npm) SEMVER:introduced=3.0.0,fixed=3.10.1.
- Is there a fix for This vulnerability?
- Yes. apollo-server-core (npm): upgrade to 3.10.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is This vulnerability attacked?
- It is attacked over the network, in a software library.
- Am I affected?
- Check whether you run apollo-server-core (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- apollo-server-core (npm): upgrade to 3.10.1 or later
npm install apollo-server-core@3.10.1
Technical details
A reflected Cross-Site Scripting (XSS) vulnerability exists in apollo-server-core versions 3.0.0 through 3.10.0. The vulnerability is located in the default landing page, which interpolates the server's URL from 'window.location.href' into a sample curl command. In older browsers such as Internet Explorer 11, this value is not automatically URI-encoded, allowing an attacker to craft a URL containing malicious JavaScript. If a user using an affected browser visits the malicious link and the landing page bundle fails to load from the CDN, the script will execute in the context of the user's session. The issue is fixed in version 3.10.1 by removing the sample curl command from the landing page.
Affected products
- Apollo GraphQL apollo-server-core >= 3.0.0, < 3.10.1
Timeline
- 2022-08-10: advisory: Original GitHub security advisory published
- 2022-08-18: disclosed: Public disclosure via OSV/GHSA database