Releases: apollographql/apollo-server
@apollo/server@5.4.0
Minor Changes
-
d25a5bdThanks @phryneas! -⚠️ SECURITY@apollo/server/standalone:The default configuration of
startStandaloneServerwas vulnerable to denial of service (DoS) attacks through specially crafted request bodies with exotic character set encodings.In accordance with RFC 7159, we now only accept request bodies encoded in UTF-8, UTF-16 (LE or BE), or UTF-32 (LE or BE).
Any other character set will be rejected with a415 Unsupported Media Typeerror.
Note that the more recent JSON RFC, RFC 8259, is more strict and will only allow UTF-8.
Since this is a minor release, we have chosen to remain compatible with the more permissive RFC 7159 for now.
In a future major release, we may tighten this restriction further to only allow UTF-8.If you were not using
startStandaloneServer, you were not affected by this vulnerability.Generally, please note that we provide
startStandaloneServeras a convenience tool for quickly getting started with Apollo Server.
For production deployments, we recommend using Apollo Server with a more fully-featured web server framework such as Express, Koa, or Fastify, where you have more control over security-related configuration options.
@apollo/server@4.13.0
Minor Changes
-
#8180
e9d49d1Thanks @github-actions! -⚠️ SECURITY@apollo/server/standalone:The default configuration of
startStandaloneServerwas vulnerable to denial of service (DoS) attacks through specially crafted request bodies with exotic character set encodings.In accordance with RFC 7159, we now only accept request bodies encoded in UTF-8, UTF-16 (LE or BE), or UTF-32 (LE or BE).
Any other character set will be rejected with a415 Unsupported Media Typeerror.
Additionally, upstream libraries used by this version of Apollo Server may not support all of these encodings, so some requests may still fail even if they pass this check.If you were not using
startStandaloneServer, you were not affected by this vulnerability.Generally, please note that we provide
startStandaloneServeras a convenience tool for quickly getting started with Apollo Server.
For production deployments, we recommend using Apollo Server with a more fully-featured web server framework such as Express, Koa, or Fastify, where you have more control over security-related configuration options.Also please note that Apollo Server 4.x is considered EOL as of January 26, 2026, and Apollo no longer commits to providing support or updates for it. Please prioritize migrating to Apollo Server 5.x for continued support and updates.
@apollo/server-integration-testsuite@5.4.0
Patch Changes
- Updated dependencies [
d25a5bd]:- @apollo/server@5.4.0
@apollo/server-integration-testsuite@4.13.0
Patch Changes
- Updated dependencies [
e9d49d1]:- @apollo/server@4.13.0
@apollo/server@5.3.0
Minor Changes
-
#8062
8e54e58Thanks @cristunaranjo! - Allow configuration of graphql execution options (maxCoercionErrors)const server = new ApolloServer({ typeDefs, resolvers, executionOptions: { maxCoercionErrors: 50, }, });
-
#8014
26320bcThanks @mo4islona! - Exposegraphqlvalidation options.const server = new ApolloServer({ typeDefs, resolvers, validationOptions: { maxErrors: 10, }, });
@apollo/server-integration-testsuite@5.3.0
@apollo/server@5.2.0
Minor Changes
-
#8161
51acbebThanks @jerelmiller! - Fix an issue where some bundlers would fail to build because of the dynamic import for the optional peer dependency on@yaacovcr/transformintroduced in@apollo/server5.1.0. To provide support for the legacy incremental format, you must now provide thelegacyExperimentalExecuteIncrementallyoption to theApolloServerconstructor.import { legacyExecuteIncrementally } from '@yaacovcr/transform'; const server = new ApolloServer({ // ... legacyExperimentalExecuteIncrementally: legacyExecuteIncrementally, });
If the
legacyExperimentalExecuteIncrementallyoption is not provided and the client sends anAcceptheader with a value ofmultipart/mixed; deferSpec=20220824, an error is returned by the server.
@apollo/server-integration-testsuite@5.2.0
Patch Changes
- Updated dependencies [
51acbeb]:- @apollo/server@5.2.0
@apollo/server@5.1.0
Minor Changes
-
#8148
80a1a1aThanks @jerelmiller! - Apollo Server now supports the incremental delivery protocol (@deferand@stream) that ships withgraphql@17.0.0-alpha.9. To use the current protocol, clients must send theAcceptheader with a value ofmultipart/mixed; incrementalSpec=v0.2.Upgrading to 5.1 will depend on what version of
graphqlyou have installed and whether you already support the incremental delivery protocol.I use
graphql@16without incremental deliveryContinue using
graphqlv16 with no additional changes. Incremental delivery won't be available.I use
graphql@16but would like to add support for incremental deliveryInstall
graphql@17.0.0-alpha.9and follow the "Incremental delivery" guide to add the@deferand@streamdirectives to your schema. Clients should send theAcceptheader with a value ofmultipart/mixed; incrementalSpec=v0.2to get multipart responses.I use
graphql@17.0.0-alpha.2and use incremental deliveryYou must upgrade to
graphql@17.0.0-alpha.9to continue using incremental delivery. If you'd like to continue providing support for the legacy incremental protocol, install the@yaacovcr/transformpackage. Apollo Server will attempt to load this module when the client specifies anAcceptheader with a value ofmultipart/mixed; deferSpec=20220824. If this package is not installed, an error is returned by the server.Because Apollo Server now supports multiple versions of the incremental delivery types, the existing incremental delivery types have been renamed with an
Alpha2suffix. If you import these types in your code, you will need to add theAlpha2suffix.import type { - GraphQLExperimentalFormattedInitialIncrementalExecutionResult, + GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha2, - GraphQLExperimentalFormattedSubsequentIncrementalExecutionResult, + GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha2, - GraphQLExperimentalFormattedIncrementalResult, + GraphQLExperimentalFormattedIncrementalResultAlpha2, - GraphQLExperimentalFormattedIncrementalDeferResult, + GraphQLExperimentalFormattedIncrementalDeferResultAlpha2, - GraphQLExperimentalFormattedIncrementalStreamResult, + GraphQLExperimentalFormattedIncrementalStreamResultAlpha2, } from '@apollo/server';Incremental delivery types for the
graphql@17.0.0-alpha.9version are now available using theAlpha9suffix:import type { GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha9, GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha9, GraphQLExperimentalFormattedIncrementalResultAlpha9, GraphQLExperimentalFormattedIncrementalDeferResultAlpha9, GraphQLExperimentalFormattedIncrementalStreamResultAlpha9, GraphQLExperimentalFormattedCompletedResultAlpha9, GraphQLExperimentalPendingResultAlpha9, } from '@apollo/server';
@apollo/server-integration-testsuite@5.1.0
Patch Changes
- Updated dependencies [
80a1a1a]:- @apollo/server@5.1.0