CVE-2014-0054: Cross-Site Request Forgery in Spring Framework
Summary
CVE-2014-0054: Cross-Site Request Forgery in Spring Framework. Affects org.springframework:spring-webmvc across 2 version ranges.
< 3.2.8
>= 4.0.0, < 4.0.2
Fixed in 3.2.8 or 4.0.2, depending on the release line you run. How to fix ↓
Also tracked for
- libspring-java · Debian:11
The same CVE-2014-0054 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Spring Framework is a popular open-source application framework for Java. It provides comprehensive infrastructure support for developing Java applications. The Spring MVC module within the framework is responsible for building web applications. It includes the Jaxb2RootElementHttpMessageConverter, which is used for converting XML messages to Java objects and vice versa. This module is vulnerable to a Cross-Site Request Forgery (CSRF) attack due to incomplete fixes for previous vulnerabilities (CVE-2013-4152, CVE-2013-7315, and CVE-2013-6429).
Vulnerability Detail
The Jaxb2RootElementHttpMessageConverter in Spring MVC does not disable external entity resolution, making it susceptible to XML External Entity (XXE) attacks. An attacker can exploit this vulnerability by crafting malicious XML requests, leading to arbitrary file reading, denial of service, and CSRF attacks. This can result in unauthorized access to sensitive information, system compromise, and potential data breaches.
How To Fix
Latest published version: 7.1.0-RC1 as of 22 Oct 2026
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 3.2.83.2.8 -
>= 4.0.0, < 4.0.24.0.2
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If upgrading the Spring Framework is not immediately feasible, a temporary workaround is to manually disable external entity resolution in the Jaxb2RootElementHttpMessageConverter. This can be achieved by customizing the message converter configuration to disallow external entities. Here is an example of how to disable external entity resolution in Spring MVC:
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(new Jaxb2RootElementHttpMessageConverter() {
{
setSupportDtd(false);
setProcessExternalEntities(false);
}
});
}
}
Conclusion
The Cross-Site Request Forgery (CSRF) vulnerability in the Spring Framework's Jaxb2RootElementHttpMessageConverter can lead to unauthorized access, file reading, denial of service, and potential data breaches. It is crucial to upgrade to a fixed version of the Spring Framework or apply the provided workaround to mitigate the risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.springframework:spring-webmvc →
FAQ
This vulnerability allows an attacker to perform Cross-Site Request Forgery (CSRF) attacks, read arbitrary files, and cause denial of service. It can lead to unauthorized access to sensitive information, system compromise, and potential data breaches.
You can use Vulert, a tool that monitors and alerts in real-time for open-source vulnerabilities. Visit the Vulert Playground at Vulert Scanner and enter your pom.xml file to check if your application is affected.
While specific exploits for this vulnerability may not be publicly available, the underlying XXE vulnerability can be leveraged by attackers to perform various malicious activities. It is important to apply the recommended fixes to mitigate the risk.
Yes, this vulnerability is identified as CVE-2014-0054.
The CWE ID for this vulnerability is CWE-352, which represents Cross-Site Request Forgery (CSRF).
References
Related vulnerabilities
Recent vulnerabilities recorded for org.springframework:spring-webmvc.