CVE-2026-41856: Spring for GraphQL Annotation Detection Vulnerability

Summary

11/06/2026
Yes i
High
7.5

CVE-2026-41856: Spring for GraphQL: Annotation Detection Vulnerability. Affects org.springframework.graphql:spring-graphql across 4 version ranges.

>= 1.0.0, <= 1.0.6 >= 1.3.0, <= 1.3.8 >= 1.4.0, < 1.4.6 >= 2.0.0, < 2.0.4

Fixed in 1.4.6 or 2.0.4, depending 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Spring for GraphQL is a framework that integrates Spring with GraphQL, allowing developers to build GraphQL APIs using the Spring programming model. It provides features such as data fetching, schema management, and integration with Spring's security and data access layers. However, it has a vulnerability related to its annotation detection mechanism, which may lead to security annotations being ignored at runtime, particularly in type hierarchies.

Vulnerability Detail

The vulnerability arises from the Spring GraphQL annotation detection mechanism for @Controller data fetchers, which may fail to correctly resolve annotations on methods within type hierarchies. This flaw can have serious security implications, as it may allow unauthorized access to resources if security annotations are not enforced as intended. The affected versions include Spring for GraphQL 2.0.0 through 2.0.3, 1.4.0 through 1.4.5, 1.3.0 through 1.3.8, and 1.0.0 through 1.0.6.

How To Fix

Latest published version: 2.1.0-RC1 as of 23 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.

  • >= 1.4.0, < 1.4.6 1.4.6
  • >= 2.0.0, < 2.0.4 2.0.4

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

Workaround

As a temporary workaround, ensure that your application does not rely solely on the affected annotation detection mechanism for authorization decisions. Implement additional checks in your application logic to enforce security at runtime.

Conclusion

In summary, CVE-2026-41856 is a significant vulnerability in the Spring for GraphQL framework that can lead to unauthorized access due to improper annotation detection. It is crucial to update to the patched versions to mitigate this risk and ensure the security of your application.

See every vulnerability recorded for org.springframework.graphql:spring-graphql →

Share this vulnerability

FAQ

CVE-2026-41856 is a vulnerability in the Spring for GraphQL framework that affects the annotation detection mechanism for @Controller data fetchers.

Affected versions include Spring for GraphQL 2.0.0 through 2.0.3, 1.4.0 through 1.4.5, 1.3.0 through 1.3.8, and 1.0.0 through 1.0.6.

The vulnerability may lead to unauthorized access to resources if security annotations are ignored at runtime, compromising the application's security.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By simply analyzing your pom.xml file, Vulert can help you identify if your application is affected by this vulnerability.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.graphql:spring-graphql.

How To Fix

Latest published version: 2.1.0-RC1 as of 23 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.

  • >= 1.4.0, < 1.4.6 1.4.6
  • >= 2.0.0, < 2.0.4 2.0.4

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