Lookup for vulnerable packages by Package URL.

Purlpkg:npm/apollo-server-core@1.0.3-tracing.2
Typenpm
Namespace
Nameapollo-server-core
Version1.0.3-tracing.2
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
0
url VCID-98q9-kzcd-77h4
vulnerability_id VCID-98q9-kzcd-77h4
summary
Apollo Server: Browser bug allows for bypass of XS-Search (read-only Cross-Site Request Forgery) prevention
# Impact

In a Cross-Site Request Forgery attack, untrusted web content causes browsers to send authenticated requests to web servers which use cookies for authentication. While the web content is prevented from reading the request's response due to the Cross-Origin Request Sharing (CORS) protocol, an attacker may be able to cause side effects in the server ("CSRF" attack), or learn something about the response via timing analysis ("XS-Search" attack).

Apollo Server has a built-in feature which prevents CSRF and XS-Search attacks: it refuses to process GraphQL requests that could possibly have been sent by a spec-compliant web browser without a protective "preflight" step. See [Apollo Server's docs](https://www.apollographql.com/docs/apollo-server/security/cors) for more details on CORS, CSRF attacks, and Apollo Server's CSRF prevention feature.

This feature is fully effective against attacks carried out against users of spec-compliant browsers. Unfortunately, a major browser introduced a bug in 2025 which meant in certain cases, it failed to follow the CORS spec. The browser's maintainers have already committed to fixing the bug and making the browser spec-compliant again.

Even with this bug, Apollo Server's CSRF prevention feature **blocks** "side effect" CSRF attacks: Apollo Server will still correctly refuse to execute _mutations_ in requests that were not preflighted. However, some specially crafted authenticated GraphQL _queries_ can be issued across origins *without preflight* in buggy versions of this browser, allowing for XS-Search attacks: an attacker can analyze response times to learn facts about the responses to requests such as whether fields return null or approximately how many list entries are returned from fields.

GraphQL servers are only vulnerable if they rely on cookies (or HTTP Basic Auth) for authentication.

## Patches

The vulnerability is patched in `@apollo/server` v5.5.0. This release contains a single change: GraphQL requests sent in HTTP `GET` requests which contain a `Content-Type` header naming a type other than `application/json` are rejected. (`GET` requests with no `Content-Type` are allowed.) This change prevents XS-Search attacks even in browsers which are non-compliant in ways similar to this browser.

There are no known cases where GraphQL apps depend on the ability of clients to send non-empty `Content-Type` headers with GET requests other than `application/json`, so this change has not been made configurable; if this change breaks a use case, [file an issue](https://github.com/apollographql/apollo-server/issues) and more configurability can be added.

Apollo is not currently providing a patch for previous major versions of Apollo Server, which are all [end-of-life](https://www.apollographql.com/docs/apollo-server/previous-versions).

### Workarounds

If upgrading is not possible, this particular browser's bug can be mitigated by preventing any HTTP request with a `Content-Type` header containing `message/` from reaching Apollo Server (e.g. in a proxy or middleware).

For example, when using Apollo Server's Express integration, something like this can be placed *before* attaching `expressMiddleware` to the `app`:

```js
app.use((req, res, next) => {
  for (let i = 0; i < req.rawHeaders.length - 1; i += 2) {
    if (
      req.rawHeaders[i].toLowerCase() === 'content-type' &&
      req.rawHeaders[i + 1].includes('message/')
    ) {
      return res.status(415).json({ error: 'Content-Type not allowed' });
    }
  }
  next();
});
```

While the patch prevents a broader class of similar issues, the only known way to exploit this vulnerability is against a particular browser which currently plans to ship a fix in May 2026. If it is already past June 2026 and this vulnerability has not been addressed yet, it is likely that the system is not currently vulnerable. Upgrading to the latest version of Apollo Server is still recommended for the broader protection.

## Resources

The browser bug causes a similar vulnerability in Apollo Router; see https://github.com/apollographql/router/security/advisories/GHSA-hff2-gcpx-8f4p
references
0
reference_url https://github.com/apollographql/apollo-server
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server
1
reference_url https://github.com/apollographql/apollo-server/commit/ada12001c4e95b5c779d80314a5a32e33087b5cf
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/commit/ada12001c4e95b5c779d80314a5a32e33087b5cf
2
reference_url https://github.com/apollographql/apollo-server/releases/tag/@apollo/server@5.5.0
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/releases/tag/@apollo/server@5.5.0
3
reference_url https://github.com/apollographql/apollo-server/security/advisories/GHSA-9q82-xgwf-vj6h
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/security/advisories/GHSA-9q82-xgwf-vj6h
4
reference_url https://github.com/apollographql/router/security/advisories/GHSA-hff2-gcpx-8f4p
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/router/security/advisories/GHSA-hff2-gcpx-8f4p
5
reference_url https://www.apollographql.com/docs/apollo-server/previous-versions
reference_id
reference_type
scores
0
value 6.3
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.apollographql.com/docs/apollo-server/previous-versions
6
reference_url https://github.com/advisories/GHSA-9q82-xgwf-vj6h
reference_id GHSA-9q82-xgwf-vj6h
reference_type
scores
url https://github.com/advisories/GHSA-9q82-xgwf-vj6h
fixed_packages
aliases GHSA-9q82-xgwf-vj6h
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-98q9-kzcd-77h4
1
url VCID-fdyu-hkcu-7bhy
vulnerability_id VCID-fdyu-hkcu-7bhy
summary
Prevent logging invalid header values
## Impact
### What kind of vulnerability is it?
Apollo Server can log sensitive information (Studio API keys) if they are passed incorrectly (with leading/trailing whitespace) or if they have any characters that are invalid as part of a header value.

### Who is impacted?
Users who (all of the below):
* use either the schema reporting or usage reporting feature
* use an Apollo Studio API key which has invalid header values
* use the default fetcher (`node-fetch`) or configured their own `node-fetch` fetcher

The following node snippet can test whether your API key has invalid header values. This code is taken directly from `node-fetch@2`'s header value validation code.
```js
const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
if (invalidHeaderCharRegex.test('<YOUR_API_KEY>')) {
 console.log('potentially affected');
}
console.log('unaffected');
```

If the provided API key is not a valid header value, whenever Apollo Server uses that API key in a request (to Studio, for example), `node-fetch` will throw an error _which contains the header value_. This error is logged in various ways depending on the user's configuration, but most likely the console or some configured logging service.

### Patches
This problem is patched in the latest version of Apollo Server as soon as this advisory is published.

### Workarounds
* Try retrieving a new API key from Studio. Note: this may not work if the invalid character is not part of the secret (it may be derived from identifiers like graph name, user name).
* Override the `fetcher` 
* Disable schema reporting and/or usage reporting

### Solution
* Apollo Server will now call `.trim()` on incoming API keys in order to eliminate leading/trailing whitespace and log a warning when it does so.
* Apollo Server will now perform the same validation of API keys as `node-fetch@2` performs on header values on startup. Apollo Server will throw an error on startup (i.e., fail to start completely) and notify the user their API key is invalid along with the offending characters.
references
0
reference_url https://github.com/apollographql/apollo-server
reference_id
reference_type
scores
0
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server
1
reference_url https://github.com/apollographql/apollo-server/commit/2c8106c433c4add4b43e2e2b2f5c5c4887b17314
reference_id
reference_type
scores
0
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/commit/2c8106c433c4add4b43e2e2b2f5c5c4887b17314
2
reference_url https://github.com/apollographql/apollo-server/commit/d38b43bac88acdef4295759d7dcc3d4c348d9575
reference_id
reference_type
scores
0
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/commit/d38b43bac88acdef4295759d7dcc3d4c348d9575
3
reference_url https://github.com/advisories/GHSA-j5g3-5c8r-7qfx
reference_id GHSA-j5g3-5c8r-7qfx
reference_type
scores
url https://github.com/advisories/GHSA-j5g3-5c8r-7qfx
4
reference_url https://github.com/apollographql/apollo-server/security/advisories/GHSA-j5g3-5c8r-7qfx
reference_id GHSA-j5g3-5c8r-7qfx
reference_type
scores
0
value LOW
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/security/advisories/GHSA-j5g3-5c8r-7qfx
fixed_packages
0
url pkg:npm/apollo-server-core@2.26.1
purl pkg:npm/apollo-server-core@2.26.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-98q9-kzcd-77h4
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/apollo-server-core@2.26.1
1
url pkg:npm/apollo-server-core@3.12.1
purl pkg:npm/apollo-server-core@3.12.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-98q9-kzcd-77h4
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/apollo-server-core@3.12.1
aliases GHSA-j5g3-5c8r-7qfx, GMS-2023-2117, GMS-2023-2129
risk_score 1.4
exploitability 0.5
weighted_severity 2.7
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-fdyu-hkcu-7bhy
2
url VCID-u2b9-99j7-rkbk
vulnerability_id VCID-u2b9-99j7-rkbk
summary
Introspection in schema validation in Apollo Server
If `subscriptions: false` is passed to the `ApolloServer` constructor options, there is no impact. If implementors were not expecting validation rules to be enforced on the WebSocket subscriptions transport **and** are unconcerned about introspection being enabled on the WebSocket subscriptions transport (or were not expecting that), then this advisory is not applicable. If `introspection: true` is passed to the `ApolloServer` constructor options, the impact is limited to user-provided validation rules (i.e., using `validationRules`) since there would be no expectation that introspection was disabled.
references
0
reference_url https://github.com/apollographql/apollo-server/commit/e2e816316f5c28a03de2ee1589edb2b10c358114
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/commit/e2e816316f5c28a03de2ee1589edb2b10c358114
1
reference_url https://www.npmjs.com/advisories/1525
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1525
2
reference_url https://www.npmjs.com/advisories/1526
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1526
3
reference_url https://www.npmjs.com/advisories/1527
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1527
4
reference_url https://www.npmjs.com/advisories/1528
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1528
5
reference_url https://www.npmjs.com/advisories/1529
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1529
6
reference_url https://www.npmjs.com/advisories/1530
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1530
7
reference_url https://www.npmjs.com/advisories/1531
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1531
8
reference_url https://www.npmjs.com/advisories/1532
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1532
9
reference_url https://www.npmjs.com/advisories/1533
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1533
10
reference_url https://www.npmjs.com/advisories/1534
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1534
11
reference_url https://www.npmjs.com/advisories/1535
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1535
12
reference_url https://www.npmjs.com/advisories/1536
reference_id
reference_type
scores
0
value MODERATE
scoring_system generic_textual
scoring_elements
url https://www.npmjs.com/advisories/1536
13
reference_url https://github.com/advisories/GHSA-w42g-7vfc-xf37
reference_id GHSA-w42g-7vfc-xf37
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/advisories/GHSA-w42g-7vfc-xf37
14
reference_url https://github.com/apollographql/apollo-server/security/advisories/GHSA-w42g-7vfc-xf37
reference_id GHSA-w42g-7vfc-xf37
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/apollographql/apollo-server/security/advisories/GHSA-w42g-7vfc-xf37
fixed_packages
0
url pkg:npm/apollo-server-core@2.14.2
purl pkg:npm/apollo-server-core@2.14.2
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-98q9-kzcd-77h4
1
vulnerability VCID-fdyu-hkcu-7bhy
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/apollo-server-core@2.14.2
aliases GHSA-w42g-7vfc-xf37, GMS-2020-59, GMS-2020-60, GMS-2020-61, GMS-2020-62, GMS-2020-63, GMS-2020-64, GMS-2020-65, GMS-2020-66, GMS-2020-67, GMS-2020-68, GMS-2020-69, GMS-2020-70
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-u2b9-99j7-rkbk
Fixing_vulnerabilities
Risk_score3.1
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/apollo-server-core@1.0.3-tracing.2