Vulnerability · Published Jun 9, 2026 · Assigned by vmware

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

High 7.1

In plain English

A high-severity cross-site scripting in Spring Framework from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.2%top 94.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libspring-javano fix listedDEBIAN-CVE-2026-41845
Debian:13libspring-javano fix listedDEBIAN-CVE-2026-41845
Debian:14libspring-javano fix listedDEBIAN-CVE-2026-41845
Mavenorg.springframework:spring-webmvcno fix listedGHSA-3chg-m5w7-qfv5
Mavenorg.springframework:spring-webmvc7.0.8GHSA-3chg-m5w7-qfv5
Mavenorg.springframework:spring-webmvc6.2.19GHSA-3chg-m5w7-qfv5
Mavenorg.springframework:spring-webmvcno fix listedGHSA-3chg-m5w7-qfv5
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2026-41845
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2026-41845
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2026-41845

Affected products (as reported)

VendorProductVersions
Spring Spring Framework 7.0.0 – before 7.0.7.16.2.0 – before 6.2.18.16.1.0 – before 6.1.285.3.0 – before 5.3.49

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

References