# CVE-2026-41845: Spring Framework Cross-site Scripting via JavaScriptUtils

- Severity: High 7.1 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-06-09T03:50:48.454Z
- Modified: 2026-09-10T03:50:55.485Z
- Also known as: GHSA-3chg-m5w7-qfv5
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Framework: from 7.0.0 before 7.0.7.1; from 6.2.0 before 6.2.18.1; from 6.1.0 before 6.1.28; from 5.3.0 before 5.3.49
- org.springframework:spring-webmvc (Maven): from 7.0.0 before 7.0.8; from 6.2.0 before 6.2.19; from 6.1.0 up to 6.1.21; up to 5.3.39
- vmware spring_framework: from 5.3.0 before 5.3.49; from 6.1.0 before 6.1.28; from 6.2.0 before 6.2.18.1; from 7.0.0 before 7.0.7.1

## Every score

- vmware: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-41845](https://www.cve.org/CVERecord?id=CVE-2026-41845), CVE Terms of Use, modified 2026-06-27
- GitHub Advisory Database: [GHSA-3chg-m5w7-qfv5](https://github.com/advisories/GHSA-3chg-m5w7-qfv5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41845](https://nvd.nist.gov/vuln/detail/CVE-2026-41845), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-41845 · Whole record: https://cve.day/CVE-2026-41845.json · Rebuilt by cve.day 2026-11-25T22:59:24.065Z
