VYPR
Medium severity5.9NVD Advisory· Published Jun 9, 2026

CVE-2026-41846

CVE-2026-41846

Description

Spring MVC JSP form tags are vulnerable to XSS due to improper handling of user-supplied values in cssClass, cssErrorClass, and cssStyle attributes.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Spring MVC JSP form tags are vulnerable to XSS due to improper handling of user-supplied values in cssClass, cssErrorClass, and cssStyle attributes.

Vulnerability

Spring MVC applications using JSP form tags are vulnerable to arbitrary HTML and JavaScript code injection if user-supplied values are accepted in the cssClass, cssErrorClass, or cssStyle attributes. This vulnerability affects Spring Framework versions 7.0.0 through 7.0.7, 6.2.0 through 6.2.18, 6.1.0 through 6.1.27, and 5.3.0 through 5.3.48 [1].

Exploitation

An attacker can exploit this vulnerability by tricking a user into interacting with a crafted web page. If the application uses user-supplied input within the vulnerable attributes of JSP form tags, the attacker can inject malicious HTML or JavaScript code. This requires the attacker to have network access to the vulnerable application and for the user to interact with the application in a way that triggers the vulnerable code path, likely involving user interaction with a form element [1].

Impact

Successful exploitation of this vulnerability can lead to a cross-site scripting (XSS) attack. An attacker can inject arbitrary HTML and JavaScript code, potentially allowing them to steal user session information, perform actions on behalf of the user, or redirect users to malicious websites. The impact is limited to the scope of the user's session and privileges within the application [1].

Mitigation

Users should upgrade to the following fixed versions: Spring Framework 7.0.8, 6.2.19, 6.1.28, and 5.3.49. Versions that are no longer supported are also affected. No further mitigation steps are necessary beyond upgrading [1].

AI Insight generated on Jun 9, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

1

News mentions

0

No linked articles in our index yet.