CVE-2026-41856: Spring GraphQL Annotation Detection Vulnerability

HIGH | JUNE 03, 2026 | CVE-2026-41856

Description

The Spring GraphQL annotation detection mechanism for @Controller data fetchers may not correctly resolve annotations on methods within type hierarchies. This can be an issue if such annotations are used for authorization decisions.

Spring for GraphQL application are vulnerable when all the following are true:

  • the application has Spring Security on the classpath
  • the application relies on Spring Security's @EnableMethodSecurity feature for security checks
  • the application is implementing @Controller classes within type hierarchies

When all the conditions above are met, the security annotations can be ignored at runtime.

Affected Spring Products and Versions

Spring for GraphQL:

  • 2.0.0 - 2.0.3
  • 1.4.0 - 1.4.5
  • 1.3.0 - 1.3.8
  • 1.0.0 - 1.0.6

Versions that are no longer supported are also affected.

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
2.0.x 2.0.4 OSS
1.4.x 1.4.6 OSS
1.3.x 1.3.9 Commercial
1.0.x 1.0.7 Commercial

No further mitigation steps are necessary.

Credit

This vulnerability was discovered and responsibly reported by Bofei Chen.

References

History

  • 2026-06-10: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all