Skip to main content

Spring Framework CVE-2026-41845

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

Attack ChainAIDerived

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

  1. Access
    Identify Spring app using javaScriptEscape()
  2. Delivery
    Craft payload that escapes JS string context
  3. Exploit
    Deliver via reflected URL or stored input
  4. Execution
    Victim loads page rendering payload
  5. Persist
    Browser executes injected JavaScript
  6. Impact
    Steal session tokens or perform actions as user

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 requires that the target Spring application actually renders attacker-controlled input into a JavaScript context using JavaScriptUtils.javaScriptEscape() (directly in code or via JSP tags whose javaScriptEscape attribute delegates to it) - applications that escape with OWASP Java Encoder, Thymeleaf's th:inline='javascript' (when used correctly), or JSON serialization are not exposed through this code path. A victim must interact with attacker-influenced content (UI:R), typically by visiting a URL with a malicious parameter or viewing stored data containing the payload; no authentication is needed to deliver the payload (PR:N). Exploitability is further limited by browser-side mitigations the target site may have, such as a strict Content-Security-Policy without unsafe-inline, which can neutralize injected scripts even if the escape gap is triggered.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N (7.1 High) indicates network-reachable, low-complexity, unauthenticated exploitation that nonetheless requires a user to interact with attacker-influenced content - typical of reflected/stored XSS. EPSS data was not supplied, the vulnerability is not listed in CISA KEV, and no public PoC has been identified at time of analysis, so this is a real but not emergency-grade priority compared with actively exploited Spring issues. The C:H rating reflects the severity of session/credential theft in browser-trust contexts rather than direct server compromise; impact is heavily dependent on whether the affected application actually uses javaScriptEscape() for untrusted data, which limits real-world reach to a subset of deployments. Key unknowns: vendor advisory text (spring.io/security/cve-2026-41845 was not retrieved here), exact escape gap, and whether tag-library users are also affected - these should be verified directly with VMware/Spring.

Exploit ScenarioDerived

An attacker crafts a URL or submits stored content (e.g., a profile field, search term, or comment) containing a payload designed to break out of the partial escaping performed by JavaScriptUtils.javaScriptEscape(); when a victim later loads a page that renders that data inside a <script> block or inline event handler using the vulnerable helper, the browser executes the injected JavaScript in the victim's session context, enabling cookie theft, token exfiltration, or actions on behalf of the user. Exploitation is unauthenticated to deliver but requires user interaction (UI:R) such as visiting the crafted page; no public PoC has been identified at time of analysis.

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

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.

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.

Affected VersionsENISA

Spring Framework 6.2.0 <6.2.19
Spring Framework 5.3.0 <5.3.49
Spring Framework 6.1.0 <6.1.28
Spring Framework 7.0.0 <7.0.8

Affected Packages

maven org.springframework:spring-webmvc fix: 6.2.19, 7.0.8
euvd spring_framework fix: 5.3.49, 6.1.28, 6.2.19, 7.0.8

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 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.

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

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

3
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

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.

Blast Radius

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

Ecosystem-wide dependent count for version 7.0.0.

Executive ViewAI

Why It Matters

Spring Framework versions 5.3.0-7.0.7 contain an XSS vulnerability in JavaScript encoding that attackers can exploit to inject malicious scripts into user browsers and compromise sessions or steal credentials. Organizations using affected versions must immediately identify systems and implement interim security controls, as no vendor patch is available. This represents a material risk to any web applications relying on vulnerable Spring Framework releases.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement interim mitigations: (1) Deploy Web Application Firewall rules targeting JavaScript injection payloads; (2) Enforce Content-Security-Policy headers with restrictive script-src directives; (3) Conduct source code audit to identify all JavaScriptUtils.javaScriptEscape() usage and apply alternative validated encoding; (4) Implement additional input validation and output encoding layers beyond framework utilities; (5) Deploy enhanced session management controls including forced re-authentication triggers; (6) Enable security monitoring for anomalous JavaScript activity and XSS-related indicators. Monitor Spring Framework project and vendor advisories for availability of patched versions.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor VulDB

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

Priority Score

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

Vendor StatusVendor

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