Spring Framework Cross-Site Scripting Vulnerability via JavaScript Escape Function

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in 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. This vulnerability arises from improper escaping in the 'JavaScriptUtils.javaScriptEscape()' function, which can lead to JavaScript code injection in the browser.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.

Remediation

Users should upgrade to Spring Framework versions 7.0.8, 6.2.19, 6.1.28, or 5.3.49. Instructions for accessing these versions are available on the Spring Enterprise website.

Added: Jun 9, 2026, 6:22 AM
Updated: Jun 9, 2026, 6:22 AM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
1.7
exploitability
4.2
remediation
7.7
relevance
9.3
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.