CVE-2023-28867: GraphQL Java - Stack Consumption Vulnerability

Summary

27/03/2023
Yes i
High
7.5

CVE-2023-28867: GraphQL Java vulnerable to stack consumption. Affects com.graphql-java:graphql-java across 5 version ranges.

< 0.0.0-2023-03-20T01-49-44-80e3135 >= 1.2, < 17.5 >= 18.0, < 18.4 >= 19.0, < 19.4 >= 20.0, < 20.1

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GraphQL Java (graphql-java) is an open-source library that provides a Java implementation of the GraphQL specification. It allows developers to build and execute GraphQL queries and mutations in Java applications. The library is widely used in various Maven projects. However, a vulnerability has been discovered in versions before 20.1, which can lead to stack consumption.

Vulnerability Detail

The vulnerability in GraphQL Java allows an attacker to send a specially crafted GraphQL query that triggers excessive stack consumption. This can potentially lead to a denial-of-service (DoS) condition, causing the application to become unresponsive or crash. The vulnerability has been assigned a CVSS score of 7.5, indicating a high severity level.

How To Fix

Latest published version: 230521-nf-execution as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.0.0-2023-03-20T01-49-44-80e3135 0.0.0-2023-03-20T01-49-44-80e3135
  • >= 1.2, < 17.5 17.5
  • >= 18.0, < 18.4 18.4
  • >= 19.0, < 19.4 19.4
  • >= 20.0, < 20.1 20.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed versions mentioned above to mitigate the risk of exploitation.

Conclusion

The GraphQL Java library is vulnerable to a stack consumption issue that can lead to a denial-of-service condition. It is crucial for developers to update their projects to the fixed versions to mitigate the risk. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for com.graphql-java:graphql-java →

Share this vulnerability

FAQ

GraphQL Java is a library that provides a Java implementation of the GraphQL specification. It allows developers to build and execute GraphQL queries and mutations in Java applications.

The vulnerability can lead to excessive stack consumption, potentially causing a denial-of-service (DoS) condition in the affected application.

To fix the vulnerability, update the affected version of GraphQL Java to one of the fixed versions: 20.1, 19.4, 18.4, 17.5, or 0.0.0-2023-03-20T01-49-44-80e3135.

No, there is no known workaround for this vulnerability. It is essential to update to the fixed versions to mitigate the risk.

You can find more information about this vulnerability, including its technical details and the fixed versions, in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-p4qx-6w5p-4rj2/GHSA-p4qx-6w5p-4rj2.json

Related vulnerabilities

Recent vulnerabilities recorded for com.graphql-java:graphql-java.

How To Fix

Latest published version: 230521-nf-execution as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.0.0-2023-03-20T01-49-44-80e3135 0.0.0-2023-03-20T01-49-44-80e3135
  • >= 1.2, < 17.5 17.5
  • >= 18.0, < 18.4 18.4
  • >= 19.0, < 19.4 19.4
  • >= 20.0, < 20.1 20.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback