Spring Authorization Server Default Consent Page is vulnerable to Cross-Site Scripting (XSS)

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

Description

Spring Authorization Server's default consent page renders user-controlled values without HTML entity encoding.

When using the DefaultConsentPage, an attacker can craft an OAuth2 authorization request containing a malicious value that is stored server-side and later rendered unencoded in the default consent page presented to the end user.

Applications that use a custom consent page (configured via OAuth2AuthorizationServerConfigurer.authorizationEndpoint(c -> c.consentPage(...))) are not affected.

Affected Spring Products and Versions

Spring Authorization Server:

  • 1.5.0 - 1.5.8
  • 1.4.0 - 1.4.11

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
1.5.9Enterprise Support Only
1.4.12Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was identified and responsibly reported by Yu Bao from PayPal Cybersecurity Team.

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