Incorrect Authorization Affecting org.springframework.graphql:spring-graphql package, versions [,1.4.6)[2.0.0-M1, 2.0.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKGRAPHQL-17308368
  • published11 Jun 2026
  • disclosed10 Jun 2026
  • creditBofei Chen

Introduced: 10 Jun 2026

CVE-2026-41856  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade org.springframework.graphql:spring-graphql to version 1.4.6, 2.0.4 or higher.

Overview

org.springframework.graphql:spring-graphql is a GraphQL Support for Spring Applications

Affected versions of this package are vulnerable to Incorrect Authorization via annotation resolution for @Controller data fetchers in Spring GraphQL. An attacker can bypass authorization checks when security annotations defined within a controller type hierarchy are not correctly resolved at runtime. As a result, methods that are expected to be protected by Spring Security method-level authorization may be invoked without the intended access controls.

Note: This is only exploitable if the application uses Spring Security with @EnableMethodSecurity, implements GraphQL @Controller classes within type hierarchies, and relies on security annotations for authorization decisions.

CVSS Base Scores

version 4.0
version 3.1