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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-09 · Modified: 2026-06-27
- Aliases: UBUNTU-CVE-2026-41845, DEBIAN-CVE-2026-41845, CGA-6cqr-6rxq-r2cx, CGA-ghr4-g32p-834r, CGA-3m5m-w468-rcg7, CGA-3pg5-fj5p-qjq3, CGA-432v-hhc2-6r77, CGA-57fq-hw45-xjp3, CGA-68m8-2r9v-pg2v, CGA-6hgh-qwj4-2722, CGA-86cq-2hrp-wrxj, CGA-8pwp-mhxv-3596, CGA-949j-cx4m-wf2g, CGA-9ff6-j8wv-6cq5, CGA-9jmq-mm4h-5v43, CGA-c4pw-3w9p-56cc, CGA-c4vp-xw5w-xcxq, CGA-c9vx-824p-xvfv, CGA-crpq-x7c5-9p52, CGA-f346-cfgj-r884, CGA-j6v2-x8jh-94gv, CGA-jx6x-777m-vphh, CGA-m424-jrqp-qrjh, CGA-mc5j-9jq2-g5q8, CGA-mpf7-7x6m-6h2q, GHSA-3chg-m5w7-qfv5, CGA-r3gx-ffrr-2pjx, CGA-rrhw-w8r6-34xm, CGA-rw5v-fxmf-7vg2, CGA-v2rj-p6c8-jvf7
- Record: https://cvemate.com/vulnerability/CVE-2026-41845 · JSON: https://cvemate.com/vulnerability/CVE-2026-41845/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
- EPSS: 0.161%, percentile 5.472%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard apache-activemq-5.19 (Chainguard): All versions (No fix recorded)
- chainguard apache-activemq-6.2 (Chainguard): \< 6.2.8-r2
- chainguard apache-activemq-fips-5.19 (Chainguard): All versions (No fix recorded)
- chainguard apache-activemq-fips-6.2 (Chainguard): \< 6.2.8-r4
- chainguard apache-nifi-registry (Chainguard): \< 2.10.0-r4 \| \< 2.10.0-r3
- chainguard camunda-8.9 (Chainguard): \< 8.9.13-r3
- chainguard camunda-zeebe-8.6 (Chainguard): All versions (No fix recorded)
- chainguard camunda-zeebe-8.9 (Chainguard): \< 8.9.13-r2
- chainguard geoserver-2.27 (Chainguard): All versions (No fix recorded)
- chainguard geoserver-2.28 (Chainguard): All versions (No fix recorded)
- chainguard kayenta-2025.2 (Chainguard): All versions (No fix recorded)
- chainguard kayenta-fips-2025.2 (Chainguard): All versions (No fix recorded)
- chainguard ontop (Chainguard): All versions (No fix recorded)
- chainguard ontop-fips (Chainguard): All versions (No fix recorded)
- wolfi apache-nifi-registry (Wolfi): \< 2.10.0-r4 \| \< 2.10.0-r3
- debian libspring-java (Debian): All versions (No fix recorded)
- ubuntu libspring-java (Ubuntu): All versions (No fix recorded)
- org.springframework spring-webmvc (Maven): ≥ 7.0.0, \< 7.0.8 \| ≥ 6.2.0, \< 6.2.19 \| ≥ 6.1.0, ≤ 6.1.21 \| ≤ 5.3.39
- spring spring framework: ≥ 7.0.0, \< 7.0.7.1 \| ≥ 6.2.0, \< 6.2.18.1 \| ≥ 6.1.0, \< 6.1.28 \| ≥ 5.3.0, \< 5.3.49
- vmware spring\_framework: ≥ 5.3.0, \< 5.3.49 \| ≥ 6.1.0, \< 6.1.28 \| ≥ 6.2.0, \< 6.2.18.1 \| ≥ 7.0.0, \< 7.0.7.1

## References

- <https://spring.io/security/cve-2026-41845>
- <https://ubuntu.com/security/CVE-2026-41845>
- <https://www.cve.org/CVERecord?id=CVE-2026-41845>
- <https://security-tracker.debian.org/tracker/CVE-2026-41845>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41845>
- <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>

---

Data as of 2026-12-05T05:21:30.059Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
