Intel

AIKIDO-2026-635916

spring-security-oauth2-authorization-server is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)CVE-2026-47877 Published 6 days ago

82

High Risk

This Affects:

JAVAspring-security-oauth2-authorization-server
7.0.0 - 7.0.6
Fixed in 7.0.7
7.1.0 - 7.1.0
Fixed in 7.1.1
Are you affected? Scan for Free

TL;DR

spring-security-oauth2-authorization-server default consent page renders user-controlled OAuth2 values without HTML entity encoding. An attacker can store a malicious value in an authorization request and have it execute in the consent page shown to the end user. Custom consent pages configured with consentPage(...) are not affected. The patch encodes those values before rendering.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the default OAuth2 consent page.

Background info

spring-security-oauth2-authorization-server is vulnerable to Cross-Site Scripting (XSS) in versions 7.0.0 - 7.0.6 and 7.1.0 - 7.1.0.

How to fix this

Upgrade the org.springframework.security:spring-security-oauth2-authorization-server library to the patch version.