High severity7.1NVD Advisory· Published Jun 9, 2026· Updated Jun 11, 2026
CVE-2026-41845
CVE-2026-41845
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.springframework:spring-webmvcMaven | >= 7.0.0, < 7.0.8 | 7.0.8 |
org.springframework:spring-webmvcMaven | >= 6.2.0, < 6.2.19 | 6.2.19 |
org.springframework:spring-webmvcMaven | >= 6.1.0, <= 6.1.21 | — |
org.springframework:spring-webmvcMaven | <= 5.3.39 | — |
Affected products
8- Range: 5.3.0-5.3.48, 6.1.0-6.1.27, 6.2.0-6.2.18, 7.0.0-7.0.7
- osv-coords6 versionspkg:apk/chainguard/apache-activemq-6.2pkg:apk/chainguard/apache-activemq-fips-6.2pkg:apk/chainguard/apache-nifi-registrypkg:apk/chainguard/camunda-8.9pkg:apk/chainguard/camunda-zeebe-8.9pkg:apk/wolfi/apache-nifi-registry
< 6.2.8-r2+ 5 more
- (no CPE)range: < 6.2.8-r2
- (no CPE)range: < 6.2.8-r4
- (no CPE)range: < 2.10.0-r4
- (no CPE)range: < 8.9.13-r3
- (no CPE)range: < 8.9.13-r2
- (no CPE)range: < 2.10.0-r4
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-3chg-m5w7-qfv5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-41845ghsaADVISORY
- spring.io/security/cve-2026-41845nvdVendor AdvisoryWEB
- github.com/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb1087ef92844d0abfdab015ghsaWEB
- github.com/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7b4fc005aa3d78c32015ghsaWEB
- github.com/spring-projects/spring-framework/releases/tag/v6.2.19ghsaWEB
- github.com/spring-projects/spring-framework/releases/tag/v7.0.8ghsaWEB
News mentions
0No linked articles in our index yet.