CVE-2021-36737: Pluto portal Cross-Site Scripting Vulnerability
MODERATECVE-2021-36737 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pluto portal libraries in the Maven ecosystem. The issue involves cross-site scripting in apache pluto. Remediation is available by upgrading affected packages to version 3.1.1.
CVE-2021-36737 at a Glance
How to Fix CVE-2021-36737
To remediate this vulnerability, upgrade all affected Pluto portal 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.apache.portals.pluto</groupId>
<artifactId>pluto-portal</artifactId>
<version>3.1.1</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.apache.portals.pluto
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-36737, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.portals.pluto
Analyze the terminal output to locate any version of Pluto portal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.portals.pluto 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 Pluto portal, 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-2021-36737 Affected Pluto portal Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.portals.pluto:pluto-portal
|
Maven |
< 3.1.1
|
3.1.1
|
References
Frequently Asked Questions
What is CVE-2021-36737?
Which Pluto portal versions are affected?
What version fixes CVE-2021-36737?
Is pluto-portal affected?
What CWE is associated with CVE-2021-36737?
How can I check Maven dependencies for CVE-2021-36737?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x588-g38j-f672",
"modified" : "2022-01-07T23:37:32Z",
"published" : "2022-01-08T00:46:20Z",
"aliases" : [ "CVE-2021-36737" ],
"summary" : "Cross-site Scripting in Apache Pluto",
"details" : "The input fields of the Apache Pluto UrlTestPortlet are vulnerable to Cross-Site Scripting (XSS) attacks. Users should migrate to version 3.1.1 of the v3-demo-portlet.war artifact",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.portals.pluto:pluto-portal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-36737"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/portals-pluto"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/x7kt47bf358x8sg9qg02zt0dmdrtow25"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-07T23:37:32Z",
"nvd_published_at" : "2022-01-06T09:15:00Z"
}
}