Origin Validation Error 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.19% (9th 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-17308399
  • published11 Jun 2026
  • disclosed10 Jun 2026
  • creditUnknown

Introduced: 10 Jun 2026

CVE-2026-41700  (opens in a new tab)
CWE-346  (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 Origin Validation Error via insufficient Origin validation for WebSocket connections. An attacker can perform Cross-Site WebSocket Hijacking (CSWSH) by inducing an authenticated user to visit a malicious website that establishes a WebSocket connection to the vulnerable application. If cookie-based session authentication is used and WebSocket Origin checks are not enforced, the attacker can execute arbitrary GraphQL operations using the victim's authenticated session.

Note: This is only exploitable if the application has enabled the GraphQL WebSocket transport, relies on cookie-based session authentication, and does not implement custom Spring Security WebSocket Origin enforcement.

CVSS Base Scores

version 4.0
version 3.1