{ "CVE_data_meta": { "ASSIGNER": "security@apache.org", "ID": "CVE-2021-36739", "STATE": "PUBLIC", "TITLE": "XSS vulnerability in the MVCBean JSP portlet maven archetype" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "Apache Portals", "version": { "version_data": [ { "version_affected": "=", "version_name": "org.apache.portals.pluto.archetype:mvcbean-jsp-portlet-archetype", "version_value": "3.1.0" } ] } } ] }, "vendor_name": "Apache Software Foundation" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "generator": { "engine": "Vulnogram 0.0.9" }, "impact": [ { "other": "moderate" } ], "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" } ] } ] }, "references": { "reference_data": [ { "refsource": "MISC", "url": "https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p", "name": "https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p" } ] }, "source": { "discovery": "UNKNOWN" }, "work_around": [ { "lang": "eng", "value": "If a project was generated from the affected maven archetype using a command like the following:\n\nmvn archetype:generate \\\n -DarchetypeGroupId=org.apache.portals.pluto.archetype \\\n -DarchetypeArtifactId=mvcbean-jsp-portlet-archetype \\\n -DarchetypeVersion=3.1.0 \\\n -DgroupId=com.mycompany \\\n -DartifactId=com.mycompany.my.mvcbean.jsp.portlet\n\nThen developers must fix the generated greeting.jspx file by escaping the rendered values submitted to the \"First Name\" and \"Last Name\" fields.\n\nFor example, change:\n\n ${user.firstName} ${user.lastName}! \n\nTo:\n\n ${mvc.encoders.html(user.firstName)} ${mvc.encoders.html(user.lastName)}! \n\nMoving forward, all such projects should be generated from version 3.1.1 of the Maven archetype.\n" } ] }