CVE-2014-1904 Improper Neutralization of Input During Web Page Generation in Spring Framework

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via the requested URI in a default action, affecting Spring MVC applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2014-1904?

CVE-2014-1904 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Mar 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in web/servlet/tags/form/FormTag.java in Spring MVC in Spring Framework 3.0.0 before 3.2.8 and 4.0.0 before 4.0.2 allows remote attackers to inject arbitrary web script or HTML via the requested URI in a default action.

Weakness: CWE-79

Which versions are affected by CVE-2014-1904?

4 open source packages ship an affected version, including org.springframework:spring-webmvc. It affects 1 product.

PackageAffectedFixed in
org.springframework:spring-webmvc MavenFrom 3.0.03.2.8.RELEASE
org.springframework:spring-webmvc MavenFrom 3.0.03.2.8.RELEASE
org.springframework:spring-webmvc MavenFrom 4.0.04.0.2.RELEASE
org.springframework:spring-webmvc MavenFrom 4.0.04.0.2.RELEASE

Products include Pivotal Software Spring Framework.

How do I fix CVE-2014-1904?

Upgrade org.springframework:spring-webmvc to a fixed version for your release line: 3.2.8.RELEASE or 4.0.2.RELEASE.

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-2014-1904 being exploited?

There is no known exploitation of CVE-2014-1904 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2014-1904, GHSA-ff7p-jqjm-v66h.

Is CVE-2014-1904 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free