Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged authenticated access
-
DeliveryInject payload into RelyingPartyRegistration field
-
ExploitLure or wait for victim to hit SAML filter
-
ExecutionSpring Security renders unescaped HTML form
-
PersistScript executes in victim browser
-
ImpactHijack 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (vmware).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
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- 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
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.
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
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in Spring Security Auth and Injection Flaws
View all 6More 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-35887
GHSA-3pjj-qpw6-5fcm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB