Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 90%

CVE-2026-40986: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Web Flow

0
Medium
VulnerabilityCVE-2026-40986cvecve-2026-40986cwe-79
Published: 06/11/2026 (06/11/2026, 05:03:26 UTC)
Source: CVE Database V5
Vendor/Project: Spring
Product: Spring Web Flow

Description

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.

CVSS v3.1

Score 4.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

Affected software

org.springframework.webflow/spring-webflow
pkg:maven/org.springframework.webflow/spring-webflow
Affected versions
=4.0.0=3.0.0=2.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 14:29:14 UTC

Technical Analysis

CVE-2026-40986 is a cross-site scripting vulnerability in Spring Web Flow's JavaScript RemotingHandler. The handler renders error response bodies as HTML regardless of the response's content type, allowing attacker-controlled input reflected in error details to execute scripts in the user's browser. This improper neutralization of input during web page generation is classified under CWE-79. The affected versions explicitly include 4.0.0, 3.0.0 through 3.0.1, and 2.5.0 through 2.5.1. No official patch or remediation guidance is currently documented.

Potential Impact

Successful exploitation can lead to execution of arbitrary scripts in the context of the user's browser, potentially allowing an attacker to perform actions such as session hijacking or other malicious activities that rely on script execution. The vulnerability does not impact confidentiality or availability directly but has a high impact on integrity due to script injection. The CVSS vector indicates the attack requires network access, high attack complexity, low privileges, and user interaction.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying workarounds such as validating and sanitizing inputs that may be reflected in error responses or disabling JavaScript RemotingHandler error rendering if possible. Monitor vendor communications for updates on patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
vmware
Date Reserved
2026-04-16T02:19:09.389Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a2a59ba318757064921d3a4

Added to database: 06/11/2026, 06:46:18 UTC

Last enriched: 06/24/2026, 14:29:14 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 102

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses