CVE-2019-17632 Unescaped exception messages in error responses in Jetty

Medium 6.1 Published Updated

Attackers can inject malicious scripts via unescaped exception messages in default error responses, potentially leading to cross-site scripting attacks.

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-2019-17632?

CVE-2019-17632 is a medium-severity cross-site scripting vulnerability in Eclipse Jetty, published on 25 Nov 2019. 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

In Eclipse Jetty versions 9.4.21.v20190926, 9.4.22.v20191022, and 9.4.23.v20191118, the generation of default unhandled Error response content (in text/html and text/json Content-Type) does not escape Exception messages in stacktraces included in error output.

Weakness: CWE-79

Which versions are affected by CVE-2019-17632?

6 open source packages ship an affected version, including org.eclipse.jetty:jetty-server. It affects 1 product.

PackageAffectedFixed in
org.eclipse.jetty:jetty-server MavenFrom 9.4.21.v201909269.4.24.v20191120
org.eclipse.jetty:jetty-server MavenFrom 9.4.21.v201909269.4.24.v20191120
org.eclipse.jetty:jetty-server MavenFrom 9.4.22.v201910229.4.24.v20191120
org.eclipse.jetty:jetty-server MavenFrom 9.4.22.v201910229.4.24.v20191120
org.eclipse.jetty:jetty-server MavenFrom 9.4.23.v201911189.4.24.v20191120
org.eclipse.jetty:jetty-server MavenFrom 9.4.23.v201911189.4.24.v20191120

Products include Eclipse Jetty.

How do I fix CVE-2019-17632?

Upgrade org.eclipse.jetty:jetty-server to 9.4.24.v20191120 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-2019-17632 being exploited?

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

All Eclipse Jetty vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-17632, GHSA-5h9j-q6j2-253f, UBUNTU-CVE-2019-17632.

Is CVE-2019-17632 in your software?

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

Check your SBOMs for free