CVE-2026-41845 json
Spring Framework Cross-site Scripting via JavaScriptUtils
published 2026-06-09 5 mo ago modified 2026-09-10 1 mo ago also GHSA-3chg-m5w7-qfv5 , EUVD-2026-35333
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.springframework:spring-webmvc 6.2.19, 7.0.8
- Spring Spring Framework 5.3.49, 6.1.28, 6.2.18.1, 7.0.7.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41845 updated cvss 7.1
org.springframework: Spring Framework: Cross-site scripting (XSS) via incorrect JavaScript escaping
-
Red Hat OpenShift Developer Tools and Services spring-web 6.2.14 Red Hat OpenShift Dev Spaces spring-web 6.2.14not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.springframework:spring-webmvc | >=7.0.0, <7.0.8 >=6.2.0, <6.2.19 >=6.1.0, <=6.1.21 <=5.3.39 |
7.0.8 6.2.19 |
Affected products
- Spring Spring Framework
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb1087ef92844d0abfdab015
web
-
github.com
/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7b4fc005aa3d78c32015
web
-
spring.io
/security/cve-2026-41845
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-41845
advisory
-
github.com
/spring-projects/spring-framework
package
-
github.com
/spring-projects/spring-framework/releases/tag/v6.2.19
web
-
github.com
/spring-projects/spring-framework/releases/tag/v7.0.8
web
Sources
- CVE List CVE-2026-41845
- GitHub Advisory GHSA-3chg-m5w7-qfv5
- NVD CVE-2026-41845
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.