CVE-2020-15231 Cross-site scripting attack in mapfish-print
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.
| Package | Affected | Fixed in |
|---|---|---|
org.mapfish.print:print-lib Maven | All versions | 3.24 |
org.mapfish.print:print-lib Maven | All versions | 3.24 |
org.mapfish.print:print-servlet Maven | All versions | 3.24 |
org.mapfish.print:print-servlet Maven | All versions | 3.24 |
org.mapfish.print:print-standalone Maven | All versions | 3.24 |
org.mapfish.print:print-standalone Maven | All versions | 3.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.
Other vulnerabilities in mapfish-print
Sources
Also known as GHSA-w534-q4xf-h5v2.