Medium

Improper Neutralization of Input During Web Page Generation in Spring Framework

  • Disclosed: 05.05.2022
  • Updated: 11.10.2026 12:21

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.springframework:spring-web < 3.2.2.RELEASE 3.2.2.RELEASE

References

CVSS score 5.4/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven)
Package
org.springframework:spring-web
Disclosed
05.05.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-xjrf-8x4f-43h4 - CC BY 4.0

Vulnerability history: org.springframework:spring-web

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (13) in the archive
Total entries
13
First → latest
10.2018 06.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 4
  • Medium 8

Disclosures per year

  1. 2018: 2
  2. 2019: 0
  3. 2020: 0
  4. 2021: 0
  5. 2022: 4
  6. 2023: 0
  7. 2024: 5
  8. 2025: 1
  9. 2026: 1
Severity:
  1. High · 8.1 CVE-2024-22262 < 5.3.34, >= 6.0.0, < 6.0.19, >= 6.1.0, < 6.1.6 5.3.34, 6.0.19, 6.1.6
  2. High · 8.1 CVE-2024-22259 >= 6.1.0, < 6.1.5, >= 6.0.0, < 6.0.18, < 5.3.33 6.1.5, 6.0.18, 5.3.33
  3. High · 8.1 CVE-2024-22243 >= 6.1.0, < 6.1.4, >= 6.0.0, < 6.0.17, >= 5.3.0, < 5.3.32, <= 5.2.25.RELEASE 6.1.4, 6.0.17, 5.3.32
  4. High · 7.8 CVE-2021-22118 >= 5.2.0, < 5.2.15, >= 5.3.0, < 5.3.7 5.2.15, 5.3.7
  5. Critical · 9.8 CVE-2016-1000027 < 6.0.0 6.0.0
  6. Improper Neutralization of Input During Web Page Generation in Spring Framework this entry
    Medium · 5.4 CVE-2013-6430 < 3.2.2.RELEASE 3.2.2.RELEASE

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.