Skip to main content

Spring Framework EUVDEUVD-2026-35333

| CVE-2026-41845 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-09 vmware GHSA-3chg-m5w7-qfv5
6.1
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Red Hat
7.1 MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Severity Changed
Jun 11, 2026 - 16:22 NVD
HIGH MEDIUM
CVSS changed
Jun 11, 2026 - 16:22 NVD
7.1 (HIGH) 6.1 (MEDIUM)
Patch available
Jun 09, 2026 - 06:01 EUVD
Analysis Generated
Jun 09, 2026 - 05:08 vuln.today

Blast Radius

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

Ecosystem-wide dependent count for version 7.0.0.

DescriptionNVD

Due to incorrect escaping, the use of JavaScriptUtils.javaScriptEscape() may lead to JavaScript code injection in the browser, potentially resulting in a cross-site scripting (XSS) vulnerability.

Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.

AnalysisAI

Cross-site scripting in Spring Framework versions 5.3.0-5.3.48, 6.1.0-6.1.27, 6.2.0-6.2.18, and 7.0.0-7.0.7 allows remote attackers to inject JavaScript into victim browsers when applications rely on JavaScriptUtils.javaScriptEscape() for output encoding. The flaw stems from incomplete escaping in this utility method, and successful exploitation requires user interaction (UI:R) such as visiting a crafted page. No public exploit has been identified at time of analysis and the issue is not in CISA KEV.

Technical ContextAI

Spring Framework is the foundational application framework underlying Spring Boot and a large share of enterprise Java web applications (CPE: cpe:2.3:a:spring:spring_framework). The vulnerable component is JavaScriptUtils.javaScriptEscape(), a helper widely used by developers and Spring's own tag libraries (e.g., the <spring:escapeBody javaScriptEscape='true'> JSP tag) to render untrusted strings inside JavaScript contexts. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation): the escape routine fails to neutralize certain character sequences sufficient to break out of a JavaScript string literal or template context, allowing attacker-controlled data to be parsed as code by the browser.

RemediationAI

Upgrade Spring Framework to a fixed release on your branch - based on the affected ranges this means moving beyond 5.3.48, 6.1.27, 6.2.18, or 7.0.7 to the next vendor-released patched version as specified in the Spring advisory at https://spring.io/security/cve-2026-41845 (confirm the exact target version in that advisory, as published patched versions were not independently verified in the data provided). If immediate upgrade is not possible, audit code and templates for calls to JavaScriptUtils.javaScriptEscape() (and JSP tags that delegate to it such as <spring:escapeBody javaScriptEscape='true'> and the javaScriptEscape attribute on form/eval tags) and replace them with OWASP Java Encoder's Encode.forJavaScript() or context-appropriate JSON serialization, accepting the trade-off of code churn and the need to retest output rendering. As a defensive layer, deploy a strict Content-Security-Policy that forbids inline event handlers and uses nonces or hashes for inline scripts to blunt successful injection, recognising that strict CSP may break legacy inline scripts and require template refactoring.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

Share

EUVD-2026-35333 vulnerability details – vuln.today

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