Security Exception in GraphQL Parser - graphql-java Vulnerability

graphql-java Updated 02 Oct 2025

Summary

18/03/2025
LOW
Yes i
Low
Not published

OSV-2025-215: Security exception in graphql.parser.GraphqlAntlrToLanguage.createType. Affects graphql-java versions >= f52305325593dcec70aba9c4a5717b18b6543fa0, < 9c927258ecbf5befa9990c134deb752835bcee9d. Fixed in 9c927258ecbf5befa9990c134deb752835bcee9d. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

graphql-java is a popular library that provides a Java implementation of the GraphQL specification. It allows developers to build GraphQL APIs in Java, enabling efficient data retrieval and manipulation. The library is widely used due to its flexibility and adherence to the GraphQL standard. However, it has been identified to have a security vulnerability that can lead to exceptions during parsing operations, potentially affecting application stability and security.

Vulnerability Detail

The vulnerability originates from a security exception in the GraphQL parser, specifically within the GraphqlAntlrToLanguage class. The crash occurs during the creation of types, such as list types and non-null types, which can lead to unexpected behavior or crashes in applications utilizing this library. If exploited, this vulnerability could allow attackers to disrupt service or manipulate data retrieval processes.

How To Fix

Minimum fixed version

9c927258ecbf5befa9990c134deb752835bcee9d

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

As a temporary workaround, you can implement input validation to ensure that the data being parsed does not lead to the creation of problematic types. This can help mitigate the risk of encountering the security exception until the package is updated.

Conclusion

In summary, the graphql-java library has a security vulnerability that can lead to exceptions during parsing operations. It is crucial to update to the patched version to ensure application stability and security. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.

See every vulnerability recorded for graphql-java →

Share this vulnerability

FAQ

The vulnerability is a security exception that occurs during the parsing of GraphQL types, which can lead to application crashes.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against the vulnerability using the Vulert playground without needing to sign up.

Exploiting this vulnerability can lead to application instability, crashes, and potential data manipulation issues.

Yes, a patched version of graphql-java is available. It is recommended to update to version 9c927258ecbf5befa9990c134deb752835bcee9d.

If immediate updates are not possible, implement input validation as a temporary workaround to reduce the risk of encountering the security exception.

Related vulnerabilities

Recent vulnerabilities recorded for graphql-java.

How To Fix

Minimum fixed version

9c927258ecbf5befa9990c134deb752835bcee9d

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