CVE-2021-36739

XSS vulnerability in the MVCBean JSP portlet maven archetype

Published Jan 6, 2022 CVSS 3.1 · 6.1 Medium EPSS 2.4% KEV · Not listed
Description
The "first name" and "last name" fields of the Apache Pluto 3.1.0 MVCBean JSP portlet maven archetype are vulnerable to Cross-Site Scripting (XSS) attacks.

Remediation

Vendor Workaround

If a project was generated from the affected maven archetype using a command like the following: mvn archetype:generate \ -DarchetypeGroupId=org.apache.portals.pluto.archetype \ -DarchetypeArtifactId=mvcbean-jsp-portlet-archetype \ -DarchetypeVersion=3.1.0 \ -DgroupId=com.mycompany \ -DartifactId=com.mycompany.my.mvcbean.jsp.portlet Then developers must fix the generated greeting.jspx file by escaping the rendered values submitted to the "First Name" and "Last Name" fields. For example, change: <span>${user.firstName} ${user.lastName}! </span> To: <span>${mvc.encoders.html(user.firstName)} ${mvc.encoders.html(user.lastName)}! </span> Moving forward, all such projects should be generated from version 3.1.1 of the Maven archetype.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3qp6-m7hp-jrwf Cross-site Scripting in Apache Pluto
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 22, 2025, 6:35 PM
Reserved
Jul 14, 2021, 12:00 AM
Status
Modified
Published
Jan 6, 2022, 9:15 AM
Modified
Jun 17, 2026, 3:59 AM