Spring Framework Cross-site Scripting via JavaScriptUtils
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring Framework | 7.0.0 to before 7.0.7.1; 6.2.0 to before 6.2.18.1; 6.1.0 to before 6.1.28; 5.3.0 to before 5.3.49 | 7.0.7.1, 6.2.18.1, 6.1.28, 5.3.49 | Patch available | CNA |
| — | org.springframework:spring-webmvc (Maven) | 7.0.0 to before 7.0.8 | 7.0.8 | Patch available | GHSA-3chg-m5w7-qfv5 |
| — | org.springframework:spring-webmvc (Maven) | 6.2.0 to before 6.2.19 | 6.2.19 | Patch available | GHSA-3chg-m5w7-qfv5 |
| — | org.springframework:spring-webmvc (Maven) | 6.1.0 – 6.1.21 | — | No fix listed | GHSA-3chg-m5w7-qfv5 |
| — | org.springframework:spring-webmvc (Maven) | up to 5.3.39 | — | No fix listed | GHSA-3chg-m5w7-qfv5 |
- Spring Framework VendorVMware Affected 7.0.0 to before 7.0.7.1; 6.2.0 to before 6.2.18.1; 6.1.0 to before 6.1.28; 5.3.0 to before 5.3.49 Fixed in 7.0.7.1, 6.2.18.1, 6.1.28, 5.3.49 Patch available CNA
- org.springframework:spring-webmvc (Maven) Vendor— Affected 7.0.0 to before 7.0.8 Fixed in 7.0.8 Patch available GHSA-3chg-m5w7-qfv5
- org.springframework:spring-webmvc (Maven) Vendor— Affected 6.2.0 to before 6.2.19 Fixed in 6.2.19 Patch available GHSA-3chg-m5w7-qfv5
- org.springframework:spring-webmvc (Maven) Vendor— Affected 6.1.0 – 6.1.21 Fixed in — No fix listed GHSA-3chg-m5w7-qfv5
- org.springframework:spring-webmvc (Maven) Vendor— Affected up to 5.3.39 Fixed in — No fix listed GHSA-3chg-m5w7-qfv5
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* | 5.3.0 to before 5.3.49; 6.1.0 to before 6.1.28; 6.2.0 to before 6.2.18.1; 7.0.0 to before 7.0.7.1 | Vulnerable | VMware |
- cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* Versions 5.3.0 to before 5.3.49; 6.1.0 to before 6.1.28; 6.2.0 to before 6.2.18.1; 7.0.0 to before 7.0.7.1 Vulnerable ·VMware
Remediation
- Fix · CNA Spring Framework (Spring) Fixed in 7.0.7.1, 6.2.18.1, 6.1.28, 5.3.49
- Fix · GHSA-3chg-m5w7-qfv5 org.springframework:spring-webmvc (Maven) Fixed in 7.0.8 Advisory →
- Fix · GHSA-3chg-m5w7-qfv5 org.springframework:spring-webmvc (Maven) Fixed in 6.2.19 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Spring Framework 5.3.49, 6.1.28 and 2 more versions
15 records Highest priority Priority MEDIUM 1 MEDIUM, 14 LOW
Other records, highest priority first
- TI-2026-30265 Spring Framework Unsafe Deserialization via Jackson JMS ConvertersPriority MEDIUM 43
- TI-2026-30261 Spring Framework Denial of Service via Unbounded Cache in SpELPriority LOW 39
- TI-2026-30260 Spring Framework Algorithmic Denial of Service via SpEL ExpressionsPriority LOW 39
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 2 products
- OpenShift Developer Tools and Services
- Red Hat OpenShift Dev Spaces
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41845
- 2026-10-03 Alias added: GHSA-3chg-m5w7-qfv5
References
Other 5
- https://github.com/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb1087ef92844d0abfdab015
- https://github.com/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7b4fc005aa3d78c32015
- https://github.com/spring-projects/spring-framework
- https://github.com/spring-projects/spring-framework/releases/tag/v6.2.19
- https://github.com/spring-projects/spring-framework/releases/tag/v7.0.8
More VMware Spring Framework vulnerabilities
- TI-2022-07142 Code injection in Spring Framework KEVCVSS 3.1CRITICAL 9.8
- TI-2018-01175 Code injection in Spring Framework CVSS 3.1CRITICAL 9.8
- TI-2020-04444 RFD Attack via "Content-Disposition" Header Sourced from Request Input by Spring MVC or Spring WebFlux Application CVSS 3.1HIGH 7.5
- TI-2018-01180 Code injection in Spring Framework CVSS 3.1CRITICAL 9.8
- TI-2016-09283 Pivotal Spring Framework through 5.3.16 suffers from a potential remote code execution… CVSS 3.1CRITICAL 9.8
- TI-2014-00050 The Jaxb2RootElementHttpMessageConverter in Spring MVC in Spring Framework before 3.2.8… CVSS 2.0MEDIUM 6.8
Sources
- CVE-2026-41845 · CVE Program
- CVE-2026-41845 · NVD
- FIRST EPSS
- GHSA-3chg-m5w7-qfv5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41845 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences