Security Exception in graphql-java

graphql-java Updated 02 Oct 2025

Summary

30/04/2024
LOW
Yes i
Low
Not published

OSV-2024-359: Security exception in graphql.schema.GraphQLTypeUtil.simplePrint. Affects graphql-java versions >= f52305325593dcec70aba9c4a5717b18b6543fa0, < d6dbf6156e8a90a1420a7cee957de0b22100d47f. Fixed in d6dbf6156e8a90a1420a7cee957de0b22100d47f. 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

The graphql-java package 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 package is widely used in various projects and provides a comprehensive set of tools and utilities for working with GraphQL schemas and types.

Vulnerability Detail

The security exception in the graphql.schema.GraphQLTypeUtil.simplePrint function can lead to a crash in the application. This vulnerability was reported through the OSS-Fuzz project and is caused by a security exception in the mentioned function. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) attack or execute arbitrary code. The vulnerability has a low severity rating.

How To Fix

Minimum fixed version

d6dbf6156e8a90a1420a7cee957de0b22100d47f

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the package to the fixed version.

Conclusion

The security exception in the graphql-java package's simplePrint function can lead to a crash in the application. It is recommended to update the package to the fixed version to mitigate the vulnerability.

See every vulnerability recorded for graphql-java →

Share this vulnerability

FAQ

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 vulnerability can lead to a crash in the application, potentially causing a denial-of-service (DoS) attack or enabling the execution of arbitrary code.

To fix this vulnerability, update your graphql-java package to a version that includes the fix. Modify your project's dependency configuration to use the fixed version.

There is no specific workaround mentioned for this vulnerability. Updating to the fixed version is the recommended approach.

The vulnerability has a low severity rating.

Related vulnerabilities

Recent vulnerabilities recorded for graphql-java.

How To Fix

Minimum fixed version

d6dbf6156e8a90a1420a7cee957de0b22100d47f

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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