CVE-2026-41845
MEDIUM 6.1CVSS 3.1Spring 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.
- Published
- 9 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security@vmware.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-3chg-m5w7-qfv5
- Sources
- NVDJSONOSV GHSA-3chg-m5w7-qfv5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_frameworkcpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* |
>= 5.3.0, < 5.3.49 | 5.3.49 |
| NVD | vmware | spring_frameworkcpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* |
>= 6.1.0, < 6.1.28 | 6.1.28 |
| NVD | vmware | spring_frameworkcpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* |
>= 6.2.0, < 6.2.18.1 | 6.2.18.1 |
| NVD | vmware | spring_frameworkcpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.0.7.1 | 7.0.7.1 |
| OSV | Maven | org.springframework:spring-webmvc | >= 7.0.0, < 7.0.8 | 7.0.8 |
| OSV | Maven | org.springframework:spring-webmvc | >= 6.2.0, < 6.2.19 | 6.2.19 |
| OSV | Maven | org.springframework:spring-webmvc | >= 6.1.0, <= 6.1.21 | |
| OSV | Maven | org.springframework:spring-webmvc | <= 5.3.39 |
References
- https://spring.io/security/cve-2026-41845 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41845 · ADVISORY
- https://github.com/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb1087ef92844d0abfdab015 · WEB
- https://github.com/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7b4fc005aa3d78c32015 · WEB
- https://github.com/spring-projects/spring-framework · PACKAGE
- https://github.com/spring-projects/spring-framework/releases/tag/v6.2.19 · WEB
- https://github.com/spring-projects/spring-framework/releases/tag/v7.0.8 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 9 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jun 2026)