Intel

AIKIDO-2024-10211

@apollo/server is vulnerable to Information Disclosure

Information Disclosure Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 9, 2024

40

Medium Risk

This Affects:

js@apollo/server
1.0.0 - 4.10.5
Fixed in 4.11.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package disclose information by allowing "fuzzy testing" of a graph, either manually or using automated tools, to infer the shape of the schema. This occurs due to the default behavior where a misspelled field in an operation triggers a validation error that includes a helpful "did you mean" suggestion in the error message.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@apollo/server is vulnerable to Information Disclosure in versions 1.0.0 - 4.10.5.

How to fix this

Upgrade the @apollo/server library to the patch version.