{"id":"GHSA-mr77-4pm4-x9vm","summary":"Liferay Portal and Liferay DXP Vulnerable to XSS via the Portal Search Module","details":"A Cross-site scripting (XSS) vulnerability in the Portal Search module before 6.0.12 from Liferay Portal (7.1.0 through 7.4.2), and Liferay DXP 7.1 before fix pack 27, 7.2 before fix pack 15, and 7.3 before service pack 3 allows remote attackers to inject arbitrary web script or HTML via the `tag` parameter.","aliases":["CVE-2022-42118"],"modified":"2025-08-08T21:44:55.527843Z","published":"2022-11-15T12:00:16Z","database_specific":{"github_reviewed_at":"2025-08-08T21:11:30Z","nvd_published_at":"2022-11-15T01:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42118"},{"type":"WEB","url":"https://github.com/liferay/liferay-portal/commit/b42f1e70a69a31a3f2f7004a5b1923ec1e1e5445"},{"type":"PACKAGE","url":"https://github.com/liferay/liferay-portal"},{"type":"WEB","url":"https://issues.liferay.com/browse/LPE-17342"},{"type":"WEB","url":"https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42118?p_r_p_assetEntryId=121613298&_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_redirect=https%3A%2F%2Fliferay.dev%3A443%2Fportal%2Fsecurity%2Fknown-vulnerabilities%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_r_p_assetEntryId%3D121613298%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_cur%3D0%26p_r_p_resetCur%3Dfalse"},{"type":"WEB","url":"http://liferay.com"}],"affected":[{"package":{"name":"com.liferay:com.liferay.portal.search.web","ecosystem":"Maven","purl":"pkg:maven/com.liferay/com.liferay.portal.search.web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.12"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.15","1.1.16","1.1.17","1.1.18","1.1.19","1.1.2","1.1.20","1.1.21","1.1.22","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.22","2.0.23","2.0.24","2.0.25","2.0.26","2.0.27","2.0.28","2.0.29","2.0.3","2.0.30","2.0.31","2.0.32","2.0.33","2.0.34","2.0.35","2.0.36","2.0.37","2.0.38","2.0.39","2.0.4","2.0.40","2.0.41","2.0.42","2.0.43","2.0.44","2.0.45","2.0.46","2.0.47","2.0.48","2.0.49","2.0.5","2.0.50","2.0.51","2.0.52","2.0.53","2.0.54","2.0.55","2.0.56","2.0.57","2.0.58","2.0.59","2.0.6","2.0.60","2.0.61","2.0.62","2.0.63","2.0.64","2.0.65","2.0.66","2.0.67","2.0.68","2.0.69","2.0.7","2.0.70","2.0.71","2.0.8","2.0.9","3.0.0","3.0.1","3.0.10","3.0.100","3.0.101","3.0.102","3.0.103","3.0.104","3.0.105","3.0.106","3.0.107","3.0.108","3.0.109","3.0.11","3.0.110","3.0.111","3.0.112","3.0.113","3.0.114","3.0.115","3.0.116","3.0.117","3.0.118","3.0.119","3.0.12","3.0.120","3.0.121","3.0.122","3.0.123","3.0.124","3.0.125","3.0.126","3.0.127","3.0.128","3.0.129","3.0.13","3.0.130","3.0.131","3.0.132","3.0.133","3.0.134","3.0.135","3.0.136","3.0.137","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.2","3.0.20","3.0.21","3.0.22","3.0.23","3.0.24","3.0.25","3.0.26","3.0.27","3.0.28","3.0.29","3.0.3","3.0.30","3.0.31","3.0.32","3.0.33","3.0.34","3.0.35","3.0.36","3.0.37","3.0.38","3.0.39","3.0.4","3.0.40","3.0.41","3.0.42","3.0.43","3.0.44","3.0.45","3.0.46","3.0.47","3.0.48","3.0.49","3.0.5","3.0.50","3.0.51","3.0.52","3.0.53","3.0.54","3.0.55","3.0.56","3.0.57","3.0.58","3.0.59","3.0.6","3.0.60","3.0.61","3.0.62","3.0.63","3.0.64","3.0.65","3.0.66","3.0.67","3.0.68","3.0.69","3.0.7","3.0.70","3.0.71","3.0.72","3.0.73","3.0.74","3.0.75","3.0.76","3.0.77","3.0.78","3.0.79","3.0.8","3.0.80","3.0.81","3.0.82","3.0.83","3.0.84","3.0.85","3.0.86","3.0.87","3.0.88","3.0.89","3.0.9","3.0.90","3.0.91","3.0.92","3.0.93","3.0.94","3.0.95","3.0.96","3.0.97","3.0.98","3.0.99","4.0.0","4.0.1","4.0.10","4.0.100","4.0.101","4.0.102","4.0.103","4.0.104","4.0.105","4.0.106","4.0.107","4.0.108","4.0.109","4.0.11","4.0.110","4.0.111","4.0.112","4.0.113","4.0.114","4.0.115","4.0.116","4.0.117","4.0.118","4.0.119","4.0.12","4.0.120","4.0.121","4.0.122","4.0.123","4.0.124","4.0.125","4.0.126","4.0.127","4.0.128","4.0.129","4.0.13","4.0.130","4.0.131","4.0.132","4.0.133","4.0.134","4.0.135","4.0.136","4.0.137","4.0.138","4.0.14","4.0.15","4.0.16","4.0.17","4.0.18","4.0.19","4.0.2","4.0.20","4.0.21","4.0.22","4.0.23","4.0.24","4.0.25","4.0.26","4.0.27","4.0.28","4.0.29","4.0.3","4.0.30","4.0.31","4.0.32","4.0.33","4.0.34","4.0.35","4.0.36","4.0.37","4.0.38","4.0.39","4.0.4","4.0.40","4.0.41","4.0.42","4.0.43","4.0.44","4.0.45","4.0.46","4.0.47","4.0.48","4.0.49","4.0.5","4.0.50","4.0.51","4.0.52","4.0.53","4.0.54","4.0.55","4.0.56","4.0.57","4.0.58","4.0.59","4.0.6","4.0.60","4.0.61","4.0.62","4.0.63","4.0.64","4.0.65","4.0.66","4.0.67","4.0.68","4.0.69","4.0.7","4.0.70","4.0.71","4.0.72","4.0.73","4.0.74","4.0.75","4.0.76","4.0.77","4.0.78","4.0.79","4.0.8","4.0.80","4.0.81","4.0.82","4.0.83","4.0.84","4.0.85","4.0.86","4.0.87","4.0.88","4.0.89","4.0.9","4.0.90","4.0.91","4.0.92","4.0.93","4.0.94","4.0.95","4.0.96","4.0.97","4.0.98","4.0.99","5.0.0","5.0.1","5.0.10","5.0.100","5.0.101","5.0.102","5.0.103","5.0.104","5.0.105","5.0.106","5.0.107","5.0.108","5.0.109","5.0.11","5.0.110","5.0.111","5.0.112","5.0.113","5.0.114","5.0.115","5.0.116","5.0.117","5.0.118","5.0.119","5.0.12","5.0.120","5.0.121","5.0.122","5.0.123","5.0.124","5.0.125","5.0.126","5.0.127","5.0.128","5.0.129","5.0.13","5.0.130","5.0.131","5.0.14","5.0.15","5.0.16","5.0.17","5.0.18","5.0.19","5.0.2","5.0.20","5.0.21","5.0.22","5.0.23","5.0.24","5.0.25","5.0.26","5.0.27","5.0.28","5.0.29","5.0.3","5.0.30","5.0.31","5.0.32","5.0.33","5.0.34","5.0.35","5.0.36","5.0.37","5.0.38","5.0.39","5.0.4","5.0.40","5.0.41","5.0.42","5.0.43","5.0.44","5.0.45","5.0.46","5.0.47","5.0.48","5.0.49","5.0.5","5.0.50","5.0.51","5.0.52","5.0.53","5.0.54","5.0.55","5.0.56","5.0.57","5.0.58","5.0.59","5.0.6","5.0.60","5.0.61","5.0.62","5.0.63","5.0.64","5.0.65","5.0.66","5.0.67","5.0.68","5.0.69","5.0.7","5.0.70","5.0.71","5.0.72","5.0.73","5.0.74","5.0.75","5.0.76","5.0.77","5.0.78","5.0.79","5.0.8","5.0.80","5.0.81","5.0.82","5.0.83","5.0.84","5.0.85","5.0.86","5.0.87","5.0.88","5.0.89","5.0.9","5.0.90","5.0.91","5.0.92","5.0.93","5.0.94","5.0.95","5.0.96","5.0.97","5.0.98","5.0.99","6.0.0","6.0.1","6.0.10","6.0.11","6.0.2","6.0.3","6.0.4","6.0.5","6.0.6","6.0.7","6.0.8","6.0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-mr77-4pm4-x9vm/GHSA-mr77-4pm4-x9vm.json"}},{"package":{"name":"com.liferay.portal:release.dxp.bom","ecosystem":"Maven","purl":"pkg:maven/com.liferay.portal/release.dxp.bom"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.1.0"},{"fixed":"7.1.10.fp27"}]}],"versions":["7.1.10","7.1.10.fp1","7.1.10.fp10","7.1.10.fp11","7.1.10.fp12","7.1.10.fp13","7.1.10.fp14","7.1.10.fp15","7.1.10.fp16","7.1.10.fp17","7.1.10.fp18","7.1.10.fp19","7.1.10.fp2","7.1.10.fp20","7.1.10.fp22","7.1.10.fp24","7.1.10.fp25","7.1.10.fp26","7.1.10.fp3","7.1.10.fp4","7.1.10.fp5","7.1.10.fp6","7.1.10.fp7","7.1.10.fp8","7.1.10.fp9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-mr77-4pm4-x9vm/GHSA-mr77-4pm4-x9vm.json"}},{"package":{"name":"com.liferay.portal:release.dxp.bom","ecosystem":"Maven","purl":"pkg:maven/com.liferay.portal/release.dxp.bom"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.2.10.fp15"}]}],"versions":["7.2.1","7.2.10","7.2.10.fp1","7.2.10.fp1-1","7.2.10.fp10","7.2.10.fp11","7.2.10.fp12","7.2.10.fp13","7.2.10.fp14","7.2.10.fp2","7.2.10.fp3","7.2.10.fp4","7.2.10.fp5","7.2.10.fp6","7.2.10.fp7","7.2.10.fp8","7.2.10.fp9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-mr77-4pm4-x9vm/GHSA-mr77-4pm4-x9vm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}