CVE-2024-43414
JavaScript vulnerability analysis and mitigation

Overview

Apollo Federation's query planner (@apollo/query-planner) versions >=2.0.0 and <2.8.5 contains a denial-of-service vulnerability. This issue also affects @apollo/gateway versions >=2.0.0 and < 2.8.5 and Apollo Router <1.52.1 through their use of @apollo/query-planner. The vulnerability was disclosed on August 27, 2024 (GitHub Advisory).

Technical details

The vulnerability occurs when the Apollo query planner attempts to use a Number exceeding Javascript's Number.MAXVALUE (2^1024 - 2^971). When processing complex queries, especially those where fields can be solved through multiple subgraphs, the number of query plan permutations can exceed Number.MAXVALUE. In Javascript, this results in the value being represented as 'infinity'. When this happens, the component responsible for pruning less-than-optimal query plans fails to prune candidates, causing the query planner to evaluate many orders of magnitude more query plan candidates than necessary (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH (NVD).

Impact

If @apollo/query-planner is asked to plan a sufficiently complex query, it may loop infinitely and never complete. This results in unbounded memory consumption and either a crash or out-of-memory (OOM) termination. The issue can be triggered if there is at least one non-@key field that can be resolved by multiple subgraphs (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in @apollo/query-planner v2.8.5, @apollo/gateway v2.8.5, and Apollo Router v1.52.1. Users are advised to upgrade to these versions. As a workaround, users can ensure there are no fields resolvable from multiple subgraphs. For Federation 2 users, this can be confirmed by ensuring no subgraph schemas use the @shareable directive. Federation 1 users need to validate that there are no fields resolvable by multiple subgraphs (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vr6p-vq2p-6j74CRITICAL10
  • JavaScriptJavaScript
  • likec4
NoNoDec 15, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-66402HIGH7.1
  • JavaScriptJavaScript
  • misskey-js
NoYesDec 16, 2025
CVE-2025-66482MEDIUM6.9
  • JavaScriptJavaScript
  • misskey-js
NoYesDec 16, 2025
CVE-2025-68113MEDIUM6.5
  • JavaScriptJavaScript
  • altcha-org/altcha
NoYesDec 16, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management