CVE-2020-15231: Print lib Cross-Site Scripting Vulnerability
LOWCVE-2020-15231 is a LOW (CVSS 9.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Print lib libraries in the Maven ecosystem. The issue involves xss in mapfish print relating to jsonp support. Remediation is available by upgrading affected packages to version 3.24.
CVE-2020-15231 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-15231
To remediate this vulnerability, upgrade all affected Print lib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>3.24</version>
</dependency>
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-servlet</artifactId>
<version>3.24</version>
</dependency>
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-standalone</artifactId>
<version>3.24</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.mapfish.print
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-15231, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.mapfish.print
Analyze the terminal output to locate any version of Print lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.24), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.mapfish.print command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Print lib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-15231 Affected Print lib Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.mapfish.print:print-lib
|
Maven |
< 3.24
|
3.24
|
|
org.mapfish.print:print-servlet
|
Maven |
< 3.24
|
3.24
|
|
org.mapfish.print:print-standalone
|
Maven |
< 3.24
|
3.24
|
References
Frequently Asked Questions
What is CVE-2020-15231?
Which Print lib versions are affected?
What version fixes CVE-2020-15231?
Is print-lib affected?
Is print-servlet affected?
What is the CVSS score of CVE-2020-15231?
What CWE is associated with CVE-2020-15231?
How can I check Maven dependencies for CVE-2020-15231?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w534-q4xf-h5v2",
"modified" : "2021-01-07T23:47:26Z",
"published" : "2020-07-07T16:32:49Z",
"aliases" : [ "CVE-2020-15231" ],
"summary" : "XSS in Mapfish Print relating to JSONP support",
"details" : "### Impact\nA user can use the JSONP support to do a Cross-site scripting.\n\n### Patches\nUse version >= 3.24\n\n### Workarounds\nNo\n\n### References\n* https://github.com/mapfish/mapfish-print/pull/1397/commits/89155f2506b9cee822e15ce60ccae390a1419d5e\n* https://cwe.mitre.org/data/definitions/79.html\n\n### For more information\nIf you have any questions or comments about this advisory Comment the pull request: https://github.com/mapfish/mapfish-print/pull/1397",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-lib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-servlet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-standalone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.24"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mapfish/mapfish-print/security/advisories/GHSA-w534-q4xf-h5v2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15231"
}, {
"type" : "WEB",
"url" : "https://github.com/mapfish/mapfish-print/pull/1397/commits/89155f2506b9cee822e15ce60ccae390a1419d5e"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-07T16:31:25Z",
"nvd_published_at" : null
}
}