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…

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: Thu Jun 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/11/2026, 07:02:36 UTC

Technical Analysis

Spring Web Flow's JavaScript RemotingHandler component fails to properly neutralize input during web page generation, specifically by rendering error response bodies as HTML regardless of the content type. This improper handling can lead to cross-site scripting (CWE-79) when error responses include attacker-controlled input reflected in the response. The affected versions are exactly 4.0.0, 3.0.0, and 2.5.0. No official patch or remediation level has been provided in the available data.

Potential Impact

Successful exploitation could allow an attacker to execute arbitrary scripts in the context of the user's browser, potentially leading to session hijacking or other malicious actions. The vulnerability does not impact confidentiality or availability but impacts integrity through script injection. The CVSS vector indicates that exploitation 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. No official fix or patch is currently documented. Until a patch is available, users should consider applying custom input validation or sanitization on error responses and avoid reflecting untrusted input in error messages. Monitoring vendor channels for updates is recommended.

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: 6/11/2026, 6:46:18 AM

Last enriched: 6/11/2026, 7:02:36 AM

Last updated: 6/11/2026, 5:21:35 PM

Views: 16

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