Skip to main content

Spring Security EUVDEUVD-2026-35887

| CVE-2026-41003 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-10 security@vmware.com GHSA-3pjj-qpw6-5fcm
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privileged authenticated access
  2. Delivery
    Inject payload into RelyingPartyRegistration field
  3. Exploit
    Lure or wait for victim to hit SAML filter
  4. Execution
    Spring Security renders unescaped HTML form
  5. Persist
    Script executes in victim browser
  6. Impact
    Hijack session or perform cross-origin actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
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 application expose a code path where untrusted input can flow into a Spring Security RelyingPartyRegistration field (for example, a tenant admin UI that builds registrations from user-supplied SAML metadata or form fields), an authenticated account with privileges sufficient to influence that input (CVSS PR:L), and a victim who subsequently visits a Spring Security-generated SAML form so the payload renders in their browser (CVSS UI:R). Exploitation is limited to deployments that use the SAML 2.0 service provider module (spring-security-saml2-service-provider) - applications using only form login, OAuth2, or other Spring Security features are not affected - and is further limited where RelyingPartyRegistration is built only from static, administrator-controlled configuration with no external influence.

Impact

The CVSS 3.1 score of 7.6 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N) reflects a network-reachable, low-complexity issue that requires some level of privilege (PR:L) and user interaction (UI:R), with a changed scope and high confidentiality impact - consistent with stored/reflected XSS reaching a victim's browser session. No EPSS score, KEV listing, or public PoC was supplied, so real-world exploitation pressure appears low at present, but the affected component is widely deployed in enterprise SSO/SAML integrations which elevates strategic risk. A key ambiguity: the description says an attacker must be able to 'influence values in RelyingPartyRegistration' - in many deployments registrations are configured by administrators, which would significantly limit exploitability, but in deployments that build registrations from metadata URLs or tenant-supplied data the attack surface is much broader; this distinction is not clarified by the available data and should be verified against deployment specifics.

Exploit ScenarioDerived

In a multi-tenant Spring application that lets lower-privileged users register or update SAML relying party metadata, an attacker with such an account submits a crafted entity ID or URL field containing an HTML/script payload; when an administrator or another tenant user is later directed to the Spring Security SAML filter that renders the auto-submit form, the payload executes in their browser, allowing session theft or actions on behalf of the victim. No public proof-of-concept code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 10, 2026

Cross-site scripting in Spring Security's SAML 2.0 relying party support allows an attacker who can influence RelyingPartyRegistration values to inject malicious content into HTML forms generated by Spring Security filters, potentially leading to script execution in a victim's browser. The advisory and tagging characterize this as an XSS issue with possible code-execution implications in the browser context, affecting Spring Security 5.7.x through 7.0.x prior to the fixed maintenance releases. No public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

Upgrade to a patched maintenance release on each supported branch as documented in the Spring advisory at https://spring.io/security/cve-2026-41003 - specifically the next release after the upper-bound listed for each branch (5.7.24, 5.8.26, 6.3.17, 6.4.17, 6.5.11, and 7.0.6 line successors per the affected ranges); exact fix versions should be confirmed against the vendor advisory before deployment. As compensating controls until patched, restrict who can create or modify RelyingPartyRegistration entries to trusted administrators only, avoid sourcing registration fields (entity IDs, ACS URLs, single logout URLs, name IDs) from untrusted SAML metadata or tenant-supplied input, and enforce a strict Content Security Policy that disallows inline scripts on Spring Security-served SAML endpoints - the CSP mitigation can break legitimate auto-post forms and SSO flows, so test against the SAML login and logout paths before rolling out broadly.

Affected VersionsENISA

Spring Security 6.5.0 <6.5.11
Spring Security 6.3.0 <6.3.17
Spring Security 7.0.0 <7.0.6
Spring Security 5.7.0 <5.7.24
Spring Security 6.4.0 <6.4.17
Spring Security 5.8.0 <5.8.26

Affected Packages

maven org.springframework.security:spring-security-saml2-service-provider fix: 6.5.11, 7.0.6
euvd spring_security fix: 5.7.24, 5.8.26, 6.3.17, 6.4.17, 6.5.11, 7.0.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Spring Security is the de-facto authentication and authorization framework for Spring-based Java applications, and its saml2-service-provider module models SAML 2.0 relying parties through the RelyingPartyRegistration object, which holds identifiers, endpoints, and credentials used by Spring Security filters to generate SAML request/response HTML auto-submit forms. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), meaning attacker-controlled values that flow into RelyingPartyRegistration are emitted into the generated HTML without sufficient escaping, allowing script-context injection. The 'RCE' tag in vendor metadata refers to arbitrary script execution within the generated form/browser context rather than server-side native code execution typical of OS-level RCE.

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 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Primary rating from Vendor (vmware).

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Jun 12, 2026 - 20:37 NVD
HIGH MEDIUM
CVSS changed
Jun 12, 2026 - 20:37 NVD
7.6 (HIGH) 5.4 (MEDIUM)
Patch available
Jun 10, 2026 - 02:01 EUVD

DescriptionNVD

An attacker able to influence values in RelyingPartyRegistration may be able to run arbitrary code on HTML forms generated by Spring Security filters.

Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 maven packages depend on org.springframework.security:spring-security-saml2-service-provider (1 direct, 2 indirect)

Ecosystem-wide dependent count for version 7.0.0.

Executive ViewAI

Why It Matters

Spring Security versions 5.7.x through 7.0.x contain a vulnerability in SAML-based authentication that allows attackers to execute malicious code in users' browsers, directly enabling credential theft and unauthorized access to protected applications. All organizations using Spring Security for SAML single sign-on are affected, with risk extending to every dependent application. Immediate action is required to prevent compromise of user sessions and data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict RelyingPartyRegistration configuration access to authorized personnel with mandatory change approval workflows; (2) Deploy Web Application Firewall rules targeting common XSS patterns (script tags, event handlers, javascript: protocol) on SAML assertion endpoints; (3) Enable comprehensive audit logging on all SAML authentication operations to detect injection attempts; (4) Conduct security review of SAML metadata sources and configuration deployment pipelines for unauthorized modification risks; (5) Implement reverse proxy with content inspection and request validation between identity provider and application as an additional control layer.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA VulDB

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.0%
Patch available Yes
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

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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