Vulnerability · Published Jun 9, 2026 · Assigned by vmware
CVE-2026-41845Spring Framework Cross-site Scripting via JavaScriptUtils
High 7.1
In plain English
A high-severity cross-site scripting in Spring Framework from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libspring-java | no fix listed | DEBIAN-CVE-2026-41845 |
| Debian:13 | libspring-java | no fix listed | DEBIAN-CVE-2026-41845 |
| Debian:14 | libspring-java | no fix listed | DEBIAN-CVE-2026-41845 |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-3chg-m5w7-qfv5 |
| Maven | org.springframework:spring-webmvc | 7.0.8 | GHSA-3chg-m5w7-qfv5 |
| Maven | org.springframework:spring-webmvc | 6.2.19 | GHSA-3chg-m5w7-qfv5 |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-3chg-m5w7-qfv5 |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2026-41845 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2026-41845 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2026-41845 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Framework | 7.0.0 – before 7.0.7.16.2.0 – before 6.2.18.16.1.0 – before 6.1.285.3.0 – before 5.3.49 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N