CVE-2020-15231 Cross-site scripting attack in mapfish-print

Critical 9.3 Published Updated

An attacker can execute arbitrary scripts in the victim's browser via JSONP support in the mapfish-print library.

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-2020-15231?

CVE-2020-15231 is a critical cross-site scripting vulnerability in mapfish-print, published on 2 Oct 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

In mapfish-print before version 3.24, a user can use the JSONP support to do a Cross-site scripting.

Weakness: CWE-79

Which versions are affected by CVE-2020-15231?

6 open source packages ship an affected version, including org.mapfish.print:print-lib, org.mapfish.print:print-servlet and org.mapfish.print:print-standalone. It affects 1 product.

PackageAffectedFixed in
org.mapfish.print:print-lib MavenAll versions3.24
org.mapfish.print:print-lib MavenAll versions3.24
org.mapfish.print:print-servlet MavenAll versions3.24
org.mapfish.print:print-servlet MavenAll versions3.24
org.mapfish.print:print-standalone MavenAll versions3.24
org.mapfish.print:print-standalone MavenAll versions3.24

Products include Mapfish Print.

How do I fix CVE-2020-15231?

Upgrade org.mapfish.print:print-lib to 3.24 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-2020-15231 being exploited?

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

Sources

Also known as GHSA-w534-q4xf-h5v2.

Is CVE-2020-15231 in your software?

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

Check your SBOMs for free