Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft authorization URL with XSS payload in scope or client parameter
-
DeliveryDeliver crafted URL to authenticated victim via phishing or redirect
-
ExploitVictim's browser loads default consent page
-
ExecutionUnencoded payload rendered as live script
-
PersistMalicious JavaScript exfiltrates session cookie or OAuth code
-
ImpactAttacker hijacks session or redeems authorization code
Vulnerability Assessment
| Weakness |
CWE
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target deployment uses Spring Security's default built-in consent page for the OAuth2 Authorization Server flow - organizations that have implemented a custom consent page controller with correct output encoding are not vulnerable. The victim must be an authenticated user of the authorization server who can be induced (via phishing, open redirect, or malicious OAuth2 client initiation) to visit a crafted authorization request URL. Per the CVSS PR:N metric, the attacker requires no credentials or prior registration on the authorization server itself, though the victim must hold a valid authenticated session. Exploitation is limited to Spring Security 7.0.0-7.0.6 and 7.1.0; versions outside this range are not listed as affected. No special server-side configuration beyond the default consent page being active is required. |
| Impact | The CVSS 3.1 base score of 8.2 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N) is justified by the OAuth2-specific threat model: a successful XSS on a consent page can harvest OAuth2 authorization codes, PKCE verifiers, CSRF state tokens, or browser session cookies, any of which can enable account takeover or downstream API access under the victim's identity. The Scope:Changed metric reflects that the impact crosses from the server component to the victim's browser context. PR:N is consistent with the attack requiring no attacker-side authentication - only the victim must be authenticated to the authorization server. UI:R appropriately captures the social-engineering or redirect-chain step needed to land the victim on the crafted consent URL. No EPSS score was provided in the source data; without it, exploitation probability cannot be quantified numerically, but the low attack complexity and network accessibility suggest a realistic threat if the consent endpoint is reachable externally. The absence of a KEV listing and confirmed POC lowers operational urgency relative to the CVSS score alone, but deployments exposing the authorization server to untrusted clients or internet-facing users should treat this as high priority. |
| Exploit ScenarioDerived | An attacker crafts an OAuth2 authorization request URL pointing to the victim organization's Spring Security authorization server, embedding a JavaScript payload within a user-controlled parameter such as a scope name or client display field that the consent page will reflect verbatim. The attacker delivers this URL to an authenticated resource owner via phishing email or a malicious redirect from a third-party site; when the victim's browser loads the consent page, the unencoded payload executes, exfiltrating the session cookie or in-flight authorization code to an attacker-controlled endpoint. No public proof-of-concept code has been identified at time of analysis, but the attack technique is well-understood and requires no specialized tooling beyond a crafted HTTP request. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Reflected cross-site scripting (XSS) in Spring Security's built-in OAuth2 Authorization Server consent page allows an unauthenticated remote attacker to execute arbitrary JavaScript in a victim's browser by delivering a crafted authorization request URL. Affected versions include Spring Security 7.1.0 and 7.0.0 through 7.0.6; the consent page reflects user-controlled values (such as client name or scope parameters) directly into the HTML response without encoding. No public exploit has been identified at time of analysis, and this CVE does not appear in the CISA KEV catalog, but the changed-scope CVSS vector reflects the elevated risk of token and session theft in OAuth2 flows.
RemediationAI
The primary remediation is to upgrade to a patched Spring Security release; the vendor advisory at https://spring.io/security/cve-2026-47877 should be consulted for the exact fixed versions, as no specific patch version number was included in the available intelligence data - patch availability is confirmed per vendor advisory but the precise fix version is not independently verified from the provided input. As an immediate compensating control, organizations can replace the default consent page with a custom implementation that applies proper HTML entity encoding to all user-controlled values before rendering; this eliminates the vulnerable code path entirely and has no functional side effects for end users. Additionally, restricting OAuth2 client registration to trusted, internally controlled clients reduces the attacker's ability to control displayed values on the consent page, though this does not mitigate injection via other reflected query parameters. Implementing a strict Content-Security-Policy (CSP) header on the authorization server that disallows inline scripts provides defense-in-depth and can reduce the impact of any remaining XSS surface.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Security's OAuth2 Authorization Server module provides a built-in consent page rendered during the authorization code flow, where the resource owner reviews and approves client-requested scopes. The vulnerability is a classic output-encoding failure: user-controlled input embedded in HTTP request parameters (such as scope names, client display names, or other OAuth2 request fields) is interpolated into the HTML template without HTML entity encoding (e.g., converting < to <). This allows injection of arbitrary HTML and JavaScript. The affected CPE maps to Spring Security versions 7.0.0-7.0.6 and 7.1.0. The assigned CWE is listed as N/A in the provided data, but the root cause class is canonically CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting), specifically the reflected subtype. The reporter domain security@vmware.com reflects VMware/Broadcom's stewardship of the Spring portfolio.
Know when Spring Security gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Network-delivered reflected XSS requires no attacker privileges; victim interaction needed; scope change and high confidentiality loss match OAuth token theft potential.
Primary rating from Vendor (vmware).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Spring Security Authorization Server's default consent page renders user-controlled values without HTML entity encoding. Spring Security 7.1.0 Spring Security 7.0.0 - 7.0.6
Executive ViewAI
Spring Security versions 7.0.0-7.0.6 and 7.1.0 contain an unauthenticated reflected XSS vulnerability in the OAuth2 Authorization Server consent page; no public exploit identified at time of analysis. Attackers could steal user session tokens and access credentials by injecting malicious scripts into authorization requests. No vendor-released patch identified; organizations relying on Spring Security for OAuth2 authentication face immediate risk of credential compromise and lateral movement.
Until vendor patch is released: implement strict input validation on all OAuth2 authorization parameters at the application level; deploy WAF rules to encode special characters in client_name, scope, and redirect_uri; restrict OAuth2 consent page access to authenticated users only where feasible; enable comprehensive audit logging to detect token exfiltration patterns; monitor active sessions for anomalous token usage indicative of compromise.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Spring Security
View allWhen using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano
Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri
Spring Security, versions 5.7 prior to 5.7.5 and 5.6 prior to 5.6.9 could be susceptible to authorization rules bypass v
In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea
Authentication bypass in VMware/Spring's Spring Authorization Server (versions 7.0.0-7.0.4, 1.5.0-1.5.6, 1.4.0-1.4.9, an
Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authoriz
Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b
Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach
Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported
Spring Security versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 contain a signature wrapping vulnerability during
EUVD-2026-66840
GHSA-4pq7-67mc-3rgx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB