Spring for GraphQL loads Untrusted Resources in GraphiQL support

HIGH | AUGUST 20, 2026 | CVE-2026-59286

Description

The GraphiQL page bundled with Spring for GraphQL loads JavaScript libraries from a public CDN, without Subresource Integrity checks. An attacked can inject malicious code in those scripts and execute aribtrary code on the browser loading the GraphiQL page.

More precisely, an application is vulnerable when all the following are true:

  • the application has the GraphiQL endpoint enabled and exposed
  • the CDN, or the network path to it, is compromised by an attacker

When all the conditions above are met, an attacker can serve malicious JavaScript in place of the expected CDN assets. The attacker can then have access to non-HttpOnly cookies and is able to issue authenticated same-origin requests, including GraphQL operations.

Exploiting this issue requires an attacker to first compromise a third party outside the application (the CDN itself or the network path to it).

Affected Spring Products and Versions

Spring for GraphQL:

  • 2.0.0 - 2.0.4
  • 1.4.0 - 1.4.6
  • 1.1.0 - 1.3.9
  • 1.0.0 - 1.0.7

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
2.0.5OSS
2.0.4.1Enterprise Support Only
1.4.7Enterprise Support Only
1.3.10Enterprise Support Only
1.0.8Enterprise Support Only

As a workaround, users who cannot upgrade can disable the bundled GraphiQL endpoint (spring.graphql.graphiql.enabled=false) and, if an interactive GraphQL explorer is still needed, serve a self-hosted or vendored copy of GraphiQL.

History

  • 2026-08-20: 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