CVE-2013-6430 Improper Neutralization of Input During Web Page Generation in Spring Framework
Remote attackers can execute arbitrary scripts via improper escaping of Unicode characters in Spring MVC JavaScript utilities.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2013-6430?
CVE-2013-6430 is a medium-severity cross-site scripting vulnerability in Pivotal Spring MVC, published on 10 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2013-6430?
2 open source packages ship an affected version, including org.springframework:spring-web. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-web Maven | All versions | 3.2.2.RELEASE |
org.springframework:spring-web Maven | All versions | 3.2.2.RELEASE |
Products include Pivotal Software Spring Framework.
How do I fix CVE-2013-6430?
Upgrade org.springframework:spring-web to 3.2.2.RELEASE or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2013-6430 being exploited?
There is no known exploitation of CVE-2013-6430 in the wild and no public exploit code.
Other vulnerabilities in Pivotal Spring MVC
- CVE-2014-0225 Improper Restriction of XML External Entity Reference in Spring Framework
- CVE-2016-5007 Spring Security and Spring Framework may not recognize certain paths that should be protected
- CVE-2016-9878 Pivotal Spring Framework Paths provided to the ResourceServlet were not properly sanitized
- CVE-2013-6429 Cross-Site Request Forgery in Spring Framework
- CVE-2015-0201 Moderate severity vulnerability that affects org.springframework:spring-core
Sources
Also known as DEBIAN-CVE-2013-6430, GHSA-xjrf-8x4f-43h4.