Skip to main content

Spring Security CVE-2026-47877

| EUVDEUVD-2026-66840 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-27 security@vmware.com GHSA-4pq7-67mc-3rgx
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft authorization URL with XSS payload in scope or client parameter
  2. Delivery
    Deliver crafted URL to authenticated victim via phishing or redirect
  3. Exploit
    Victim's browser loads default consent page
  4. Execution
    Unencoded payload rendered as live script
  5. Persist
    Malicious JavaScript exfiltrates session cookie or OAuth code
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Spring Security 7.1.0
Spring Security 7.0.0 ≤7.0.6

Affected Packages

euvd spring_security no fix

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 &lt;). 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

Vendor (vmware) PRIMARY HIGH
NVD 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 8.2 HIGH

Network-delivered reflected XSS requires no attacker privileges; victim interaction needed; scope change and high confidentiality loss match OAuth token theft potential.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (vmware).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 02, 2026 - 15:37 NVD
HIGH MEDIUM
CVSS changed
Sep 02, 2026 - 15:37 NVD
8.2 (HIGH) 6.1 (MEDIUM)
CVE Published
Aug 27, 2026 - 06:17 cve.org
HIGH 8.2

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
High
widely used Java security framework across enterprise applications
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2014-3527 CRITICAL
9.8 May 25

When using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano

CVE-2023-34034 CRITICAL
9.8 Jul 19

Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri

CVE-2022-31692 CRITICAL
9.8 Oct 31

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

CVE-2022-22978 CRITICAL
9.8 May 19

In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea

CVE-2026-22752 CRITICAL
9.6 Jul 16

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

CVE-2023-34035 MEDIUM POC
5.3 Jul 18

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

CVE-2018-1258 HIGH
8.8 May 11

Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b

CVE-2026-111235 CRITICAL
9.1 Oct 15

Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach

CVE-2026-59270 CRITICAL
9.1 Aug 27

Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

CVE-2021-22112 HIGH
8.8 Feb 23

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

CVE-2020-5407 HIGH
8.8 May 13

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy