Skip to content

Commit a1c725e

Browse files
committed
changeset
1 parent 2c8106c commit a1c725e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.changeset/proud-buckets-kneel.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@apollo/server': patch
3+
---
4+
5+
Ensure API keys are valid header values on startup
6+
7+
Apollo Server previously performed no sanitization or validation of API keys on startup. In the case that an API key was provided which contained characters that are invalid as header values, Apollo Server could inadvertently log the API key in cleartext.
8+
9+
This only affected users who:
10+
- Provide an API key with characters that are invalid as header values
11+
- Use either schema or usage reporting
12+
- Use the default fetcher provided by Apollo Server or configure their own `node-fetch` fetcher
13+
14+
Apollo Server now trims whitespace from API keys and validates that they are valid header values. If an invalid API key is provided, Apollo Server will throw an error on startup.
15+
16+
For more details, see the security advisory:
17+
https://github.com/apollographql/apollo-server/security/advisories/GHSA-j5g3-5c8r-7qfx

0 commit comments

Comments
 (0)