Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.1
CVE-2026-41845: Spring Framework web components can allow XSS attacks
CVE-2026-41845 · published 5 months ago
Summary
Versions of Spring Framework released between 5.3.0 and 7.0.7 may incorrectly escape user input, letting attackers insert malicious JavaScript into a page viewed by users. This can let an attacker steal data or perform actions as the logged‑in user. Update the Spring libraries (spring-webmvc, spring-core, or the packaged libspring‑java from Debian, VMware, or Canonical) to the latest releases that fix the problem, or apply the vendor’s patch as soon as possible.
What to do
- Update root io.root.org.springframework:spring-webmvc to version 6.2.17-root.io.4.
- Update root io.root.org.springframework:spring-core to version 7.0.7-root.io.1.
- Update springframework org.springframework:spring-webmvc to version 6.2.17-aikido.4.
- Update springframework org.springframework:spring-core to version 7.0.7-aikido.1.
- Update root io.root.org.springframework:spring-webmvc to version 5.3.23-root.io.5.
- Update springframework org.springframework:spring-webmvc to version 5.3.23-aikido.5.
- Update root io.root.org.springframework:spring-webmvc to version 6.2.17-root.io.5.
- Update springframework org.springframework:spring-webmvc to version 6.2.17-aikido.5.
- Update root io.root.org.springframework:spring-webmvc to version 5.3.23-root.io.6.
- Update springframework org.springframework:spring-webmvc to version 5.3.23-aikido.6.
- Update root io.root.org.springframework:spring-webmvc to version 7.0.6-root.io.3.
- Update springframework org.springframework:spring-webmvc to version 7.0.6-aikido.3.
- Update springframework org.springframework:spring-webmvc to version 7.0.8.
- Update springframework org.springframework:spring-webmvc to version 6.2.19.
- Update org.springframework:spring-core to version 7.0.7-aikido.1.
- Update org.springframework:spring-webmvc to version 6.1.1-aikido.5.
- Update io.root.org.springframework:spring-core to version 7.0.7-root.io.1.
- Update io.root.org.springframework:spring-webmvc to version 6.1.1-root.io.5.
- Update org.springframework:spring-webmvc to version 5.3.31-aikido.5.
- Update io.root.org.springframework:spring-webmvc to version 5.3.31-root.io.5.
- Update org.springframework:spring-webmvc to version 6.1.1-aikido.6.
- Update io.root.org.springframework:spring-webmvc to version 6.1.1-root.io.6.
- Update org.springframework:spring-webmvc to version 5.3.20-aikido.6.
- Update io.root.org.springframework:spring-webmvc to version 5.3.20-root.io.6.
- Update org.springframework:spring-webmvc to version 7.0.6-aikido.4.
- Update io.root.org.springframework:spring-webmvc to version 7.0.6-root.io.4.
- Update org.springframework:spring-webmvc to version 4.0.3.RELEASE-aikido.2.
- Update io.root.org.springframework:spring-webmvc to version 4.0.3.RELEASE-root.io.2.
- Update org.springframework:spring-webmvc to version 4.0.3.RELEASE-aikido.4.
- Update io.root.org.springframework:spring-webmvc to version 4.0.3.RELEASE-root.io.4.
- Update org.springframework:spring-webmvc to version 6.1.11-aikido.4.
- Update io.root.org.springframework:spring-webmvc to version 6.1.11-root.io.4.
- Update org.springframework:spring-webmvc to version 6.1.21-aikido.4.
- Update io.root.org.springframework:spring-webmvc to version 6.1.21-root.io.4.
- Update org.springframework:spring-webmvc to version 5.3.31-aikido.6.
- Update io.root.org.springframework:spring-webmvc to version 5.3.31-root.io.6.
- Update org.springframework:spring-webmvc to version 5.3.20-aikido.7.
- Update io.root.org.springframework:spring-webmvc to version 5.3.20-root.io.7.
- Update org.springframework:spring-webmvc to version 4.0.3.RELEASE-aikido.6.
- Update io.root.org.springframework:spring-webmvc to version 4.0.3.RELEASE-root.io.6.
- Update org.springframework:spring-webmvc to version 6.1.8-aikido.2.
- Update io.root.org.springframework:spring-webmvc to version 6.1.8-root.io.2.
- Update org.springframework:spring-webmvc to version 5.3.20-aikido.8.
- Update io.root.org.springframework:spring-webmvc to version 5.3.20-root.io.8.
- Update org.springframework:spring-webmvc to version 4.0.3.RELEASE-aikido.7.
- Update io.root.org.springframework:spring-webmvc to version 4.0.3.RELEASE-root.io.7.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Root:Maven | root | io.root.org.springframework:spring-webmvc |
< 6.2.17-root.io.4 < 5.3.23-root.io.5 < 6.2.17-root.io.5 < 5.3.23-root.io.6 < 7.0.6-root.io.3 Fix: upgrade to 6.2.17-root.io.4
|
| Root:Maven | root | io.root.org.springframework:spring-core |
< 7.0.7-root.io.1 Fix: upgrade to 7.0.7-root.io.1
|
| Debian:11 | debian | libspring-java | All versions |
| Debian:12 | debian | libspring-java | All versions |
| Debian:13 | debian | libspring-java | All versions |
| Debian:14 | debian | libspring-java | All versions |
| – | vmware | spring_framework |
>= 5.3.0, < 5.3.49 >= 6.1.0, < 6.1.28 >= 6.2.0, < 6.2.19 >= 7.0.0, < 7.0.8 >= 6.2.0, < 6.2.18.1 >= 7.0.0, < 7.0.7.1 cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* |
| Ubuntu:Pro:14.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:Pro:16.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:Pro:22.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:Pro:24.04:LTS | canonical | libspring-java | All versions |
| Ubuntu:25.10 | canonical | libspring-java | All versions |
| Ubuntu:26.04:LTS | canonical | libspring-java | All versions |
| Root:Maven | springframework | org.springframework:spring-webmvc |
< 6.2.17-aikido.4 < 5.3.23-aikido.5 < 6.2.17-aikido.5 < 5.3.23-aikido.6 < 7.0.6-aikido.3 Fix: upgrade to 6.2.17-aikido.4
|
| Root:Maven | springframework | org.springframework:spring-core |
< 7.0.7-aikido.1 Fix: upgrade to 7.0.7-aikido.1
|
| maven | springframework | org.springframework:spring-webmvc |
>= 7.0.0, <= 7.0.7 >= 6.2.0, <= 6.2.18 >= 6.1.0, <= 6.1.21 <= 5.3.39 Fix: upgrade to 7.0.8
|
| Root:Maven | – | org.springframework:spring-core |
< 7.0.7-aikido.1 Fix: upgrade to 7.0.7-aikido.1
|
| Root:Maven | – | org.springframework:spring-webmvc |
< 6.1.1-aikido.5 < 5.3.31-aikido.5 < 6.1.1-aikido.6 < 5.3.20-aikido.6 < 7.0.6-aikido.4 < 4.0.3.RELEASE-aikido.2 < 4.0.3.RELEASE-aikido.4 < 6.1.11-aikido.4 < 6.1.21-aikido.4 < 5.3.31-aikido.6 < 5.3.20-aikido.7 < 4.0.3.RELEASE-aikido.6 3 more version ranges
Fix: upgrade to 6.1.1-aikido.5
|
| Root:Maven | – | io.root.org.springframework:spring-core |
< 7.0.7-root.io.1 Fix: upgrade to 7.0.7-root.io.1
|
| Root:Maven | – | io.root.org.springframework:spring-webmvc |
< 6.1.1-root.io.5 < 5.3.31-root.io.5 < 6.1.1-root.io.6 < 5.3.20-root.io.6 < 7.0.6-root.io.4 < 4.0.3.RELEASE-root.io.2 < 4.0.3.RELEASE-root.io.4 < 6.1.11-root.io.4 < 6.1.21-root.io.4 < 5.3.31-root.io.6 < 5.3.20-root.io.7 < 4.0.3.RELEASE-root.io.6 3 more version ranges
Fix: upgrade to 6.1.1-root.io.5
|
Original advisory text
Spring Framework Cross-site Scripting via JavaScriptUtils
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 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.
References
- https://spring.io/security/cve-2026-41845 URL
- https://security-tracker.debian.org/tracker/CVE-2026-41845 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-41845 Vendor Advisory
- https://github.com/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb108...
- https://github.com/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7...
- https://github.com/spring-projects/spring-framework/releases/tag/v6.2.19
- https://github.com/spring-projects/spring-framework/releases/tag/v7.0.8
- https://github.com/advisories/GHSA-3chg-m5w7-qfv5
- https://ubuntu.com/security/CVE-2026-41845 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-41845 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41845... Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published9 Jun 2026
Updated12 Nov 2026
First seen9 Jun 2026
Sources
DEBIAN-CVE-2026-41845 · OSV
UBUNTU-CVE-2026-41845 · OSV
CVE-2026-41845 · NVD
GHSA-3chg-m5w7-qfv5 · GHSA
CVE-2026-41845 · OSV
Track software like this
Free during beta