Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring Security 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.
Spring Security:
| Fix version | Availability |
|---|---|
| 7.1.1 | OSS |
| 7.1.0.1 | Enterprise Support Only |
| 7.0.7 | OSS |
| 7.0.6.1 | Enterprise Support Only |
No further mitigation steps are necessary.
The issue was identified and responsibly reported by Yu Bao from PayPal Cybersecurity Team.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy