CVE-2014-0054: Cross-Site Request Forgery in Spring Framework

Summary

13/05/2022
Yes i
Moderate
Not published

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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.8 3.2.8
  • >= 4.0.0, < 4.0.2 4.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 →

Share this vulnerability

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).

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework:spring-webmvc.

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.8 3.2.8
  • >= 4.0.0, < 4.0.2 4.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback