{"id":"CVE-2021-36739","state":"PUBLISHED","title":"XSS vulnerability in the MVCBean JSP portlet maven archetype","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.","publishedAt":"2022-01-06T08:50:16.000Z","updatedAt":"2025-05-22T18:35:31.820Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache Portals"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Portals","versions":[{"version":"org.apache.portals.pluto.archetype:mvcbean-jsp-portlet-archetype 3.1.0","status":"affected"}]}],"references":["https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:48:44.655Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/36xxx/CVE-2021-36739.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-36739","state":"PUBLISHED","datePublished":"2022-01-06T08:50:16.000Z","dateUpdated":"2025-05-22T18:35:31.820Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2021-07-14T00:00:00.000Z"},"containers":{"cna":{"title":"XSS vulnerability in the MVCBean JSP portlet maven archetype","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Portals","versions":[{"version":"org.apache.portals.pluto.archetype:mvcbean-jsp-portlet-archetype 3.1.0","status":"affected"}]}],"references":[{"url":"https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p","tags":["x_refsource_MISC"]}],"metrics":[{"other":{"content":{"other":"moderate"},"type":"unknown"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2022-01-06T08:50:16.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","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     <span>${user.firstName} ${user.lastName}! </span>\n\nTo:\n\n     <span>${mvc.encoders.html(user.firstName)} ${mvc.encoders.html(user.lastName)}! </span>\n\nMoving forward, all such projects should be generated from version 3.1.1 of the Maven archetype.\n"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"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":[{"name":"https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p","refsource":"MISC","url":"https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p"}]},"source":{"discovery":"UNKNOWN"},"work_around":[{"lang":"en","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     <span>${user.firstName} ${user.lastName}! </span>\n\nTo:\n\n     <span>${mvc.encoders.html(user.firstName)} ${mvc.encoders.html(user.lastName)}! </span>\n\nMoving forward, all such projects should be generated from version 3.1.1 of the Maven archetype.\n"}]}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread/m5j87nn1lmvzp8b9lmh7gqq68g5lnb7p","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T01:01:59.033Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":6.1,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-05-22T15:43:37.472219Z","id":"CVE-2021-36739","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-22T18:35:31.820Z"}}]}}}