CVE-2024-40094: graphql-java
Affects graphql-javaSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium · fixed in 21.5 : update graphql-java when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 21.5, 20.9, 19.11
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade com.graphql-java/graphql-java to 21.5, 20.9 or 19.11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavencom.graphql-java/graphql-javapkg:maven/com.graphql-java/graphql-javaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-40094, organizations should immediately upgrade graphql-java to one of the fixed versions: 21.5, 20.9, or 19.11. Applying these patches ensures that ExecutableNormalizedFields are properly handled, preventing abuse via introspection queries. Beyond patching, implement strict rate limiting on GraphQL endpoints to reduce the impact of potential abuse. Employ query complexity analysis and depth limiting to restrict overly complex or deeply nested queries that could strain server resources. Monitor API traffic for unusual patterns indicative of abuse, such as repeated introspection queries or spikes in query volume. Consider disabling introspection queries in production environments if not required, or restrict them to authenticated and authorized users only. Regularly review and update dependency management processes to ensure timely application of security patches. Finally, incorporate these mitigations into incident response plans to quickly detect and respond to potential exploitation attempts.
Description
GraphQL Java (aka graphql-java) before 21.5 does not properly consider ExecutableNormalizedFields (ENFs) as part of preventing denial of service via introspection queries.20.9 and 19.11 are also fixed versions.
References
- github.com/graphql-java/graphql-java/releases/tag/v21.5 (opens in a new tab)
- github.com/graphql-java/graphql-java/releases/tag/v20.9 (opens in a new tab)
- github.com/graphql-java/graphql-java/releases/tag/v19.11 (opens in a new tab)
- github.com/graphql-java/graphql-java/commit/97743bc1b5caa2b0bd894dc8e128b47e4d771e4a (opens in a new tab)
- github.com/graphql-java/graphql-java/discussions/3641 (opens in a new tab)
- github.com/graphql-java/graphql-java/pull/3539 (opens in a new tab)