Description
The JavaScriptUtils.javaScriptEscape method in web/util/JavaScriptUtils.java in Spring MVC in Spring Framework before 3.2.2 does not properly escape certain characters, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a (1) line separator or (2) paragraph separator Unicode character or (3) left or (4) right angle bracket.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Pivotal | Spring MVC | before 3.2.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libspring-java | 3.0.6.RELEASE-11 | — |
| Debian 13 | libspring-java | 3.0.6.RELEASE-11 | — |
| Debian 12 | libspring-java | 3.0.6.RELEASE-11 | — |
| Debian 7 | libspring-java | 3.0.6.RELEASE-6+deb7u2 | DSA-2857-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework:spring-web | < 3.2.2.RELEASE | 3.2.2.RELEASE | GHSA-xjrf-8x4f-43h4 |
Advisories 1
- DSA-2857-1 libspring-java - several Debian Security (DSA / DLA) · Mar 9, 2026