CVE-2019-10770 Default development error handler in Ratpack is vulnerable to HTML content injection (XSS)

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts via XSS in Ratpack's development mode error handler if untrusted data is present in exception messages.

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-10770?

CVE-2019-10770 is a medium-severity cross-site scripting vulnerability in io.ratpack:ratpack-core, published on 28 Jan 2020. 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

All versions of io.ratpack:ratpack-core from 0.9.10 inclusive and before 1.7.6 are vulnerable to Cross-site Scripting (XSS). This affects the development mode error handler when an exception message contains untrusted data. Note the production mode error handler is not vulnerable - so for this to be utilized in production it would require users to not disable development mode.

Weakness: CWE-79

Which versions are affected by CVE-2019-10770?

2 open source packages ship an affected version, including io.ratpack:ratpack-core. It affects 1 product.

PackageAffectedFixed in
io.ratpack:ratpack-core MavenAll versions1.7.6
io.ratpack:ratpack-core MavenAll versions1.7.6

Products include Ratpack Ratpack.

How do I fix CVE-2019-10770?

Upgrade io.ratpack:ratpack-core to 1.7.6 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-10770 being exploited?

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

Sources

Also known as GHSA-r2wf-q3x4-hrv9.

Is CVE-2019-10770 in your software?

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

Check your SBOMs for free