{"id":"CVE-2021-36739","published":"2022-01-06T08:50:16Z","modified":"2025-05-22T18:35:31Z","title":"XSS vulnerability in the MVCBean JSP portlet maven archetype","vendor":"Apache","product":"Apache Portals","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02404,"percentile":0.84455,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":16.89},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Portals","versions":["org.apache.portals.pluto.archetype:mvcbean-jsp-portlet-archetype 3.1.0"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-22T15:43:37.472219Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.portals.pluto:pluto-portal","vulnerableRanges":["<3.1.1"],"patched":["3.1.1"],"from":["GHSA-3qp6-m7hp-jrwf"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the \"first name\" and \"last name\" fields of the MVCBean JSP portlet maven archetype, which ships with Apache Pluto 3.1.0 under Apache Portals. An attacker who can get a user to interact with a crafted page or input can inject script that runs in the victim's browser, with the attacker needing no privileges beforehand but relying on the user taking an action such as viewing the affected content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:54Z"},"euvd":{"id":"EUVD-2022-0435","exploited":false,"provenance":"source"}}