Cross-site scripting in Spring Security - CVE-2026-47877

 

Cross-site scripting in Spring Security - CVE-2026-47877

Published: August 28, 2026


Vulnerability identifier: #VU146241
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-47877
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.

The vulnerability exists due to cross-site scripting in the DefaultConsentPage when processing an OAuth2 authorization request containing user-controlled values. A remote attacker can send a specially crafted authorization request to execute arbitrary script in the victim's browser.

Only applications using the default consent page are affected; applications configured with a custom consent page are not affected. User interaction is required to load the consent page.


Affected software

Spring Security

How to mitigate CVE-2026-47877

Install security update from vendor's website.

Spring Security - addressed in versions 7.0.6.1, 7.0.7, 7.1.0.1, 7.1.1

External References

Related Security Bulletins