{"id":"GHSA-r32w-v775-5952","summary":"Liferay Portal and Liferay DXP Vulnerable to XSS via the Document Library Module","details":"A Cross-site scripting (XSS) vulnerability in Document Library module before 6.0.98 from Liferay Portal (7.4.3.30 through 7.4.3.36), and Liferay DXP 7.4 update 30 through update 36 allows remote attackers to inject arbitrary web script or HTML via the `redirect` parameter.","aliases":["CVE-2022-42113"],"modified":"2025-07-16T18:59:40.387302Z","published":"2022-10-19T12:00:23Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-07-16T17:55:22Z","nvd_published_at":"2022-10-18T21:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42113"},{"type":"WEB","url":"https://github.com/liferay/liferay-portal/commit/2e4d17dfe42bb3b12c96527943087cf7e4a7d57e"},{"type":"WEB","url":"https://github.com/liferay/liferay-portal/commit/62797d3ada6545b12fbfb86dbb229ac9d491d2c2"},{"type":"PACKAGE","url":"https://github.com/liferay/liferay-portal"},{"type":"WEB","url":"https://liferay.atlassian.net/browse/LPE-17615"},{"type":"WEB","url":"https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42113?p_r_p_assetEntryId=121613062&_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%3D121613062%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_cur%3D0%26p_r_p_resetCur%3Dfalse"},{"type":"WEB","url":"https://web.archive.org/web/20221019040338/https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42113"},{"type":"WEB","url":"http://liferay.com"}],"affected":[{"package":{"name":"com.liferay:com.liferay.document.library.web","ecosystem":"Maven","purl":"pkg:maven/com.liferay/com.liferay.document.library.web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.98"}]}],"versions":["1.0.0","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","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.2.6","1.3.0","1.3.1","1.3.10","1.3.11","1.3.12","1.3.13","1.3.14","1.3.15","1.3.16","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","1.4.0","1.4.1","1.4.10","1.4.11","1.4.12","1.4.13","1.4.14","1.4.15","1.4.16","1.4.17","1.4.18","1.4.19","1.4.2","1.4.20","1.4.21","1.4.22","1.4.23","1.4.24","1.4.25","1.4.26","1.4.27","1.4.28","1.4.29","1.4.3","1.4.30","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","2.0.0","2.0.1","2.0.10","2.0.100","2.0.101","2.0.102","2.0.103","2.0.104","2.0.105","2.0.106","2.0.107","2.0.108","2.0.109","2.0.11","2.0.110","2.0.111","2.0.112","2.0.113","2.0.114","2.0.115","2.0.116","2.0.117","2.0.118","2.0.119","2.0.12","2.0.120","2.0.121","2.0.122","2.0.123","2.0.124","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.72","2.0.73","2.0.74","2.0.75","2.0.76","2.0.77","2.0.78","2.0.79","2.0.8","2.0.80","2.0.81","2.0.82","2.0.83","2.0.84","2.0.85","2.0.86","2.0.87","2.0.88","2.0.89","2.0.9","2.0.90","2.0.91","2.0.92","2.0.93","2.0.94","2.0.95","2.0.96","2.0.97","2.0.98","2.0.99","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.138","3.0.139","3.0.14","3.0.140","3.0.141","3.0.142","3.0.143","3.0.144","3.0.145","3.0.146","3.0.147","3.0.148","3.0.149","3.0.15","3.0.150","3.0.151","3.0.152","3.0.153","3.0.154","3.0.155","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.139","4.0.14","4.0.140","4.0.141","4.0.142","4.0.143","4.0.144","4.0.145","4.0.146","4.0.147","4.0.148","4.0.149","4.0.15","4.0.150","4.0.151","4.0.152","4.0.153","4.0.154","4.0.155","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.132","5.0.133","5.0.134","5.0.135","5.0.136","5.0.137","5.0.138","5.0.139","5.0.14","5.0.140","5.0.141","5.0.142","5.0.143","5.0.144","5.0.145","5.0.146","5.0.147","5.0.148","5.0.149","5.0.15","5.0.150","5.0.151","5.0.152","5.0.153","5.0.154","5.0.155","5.0.156","5.0.157","5.0.158","5.0.159","5.0.16","5.0.160","5.0.161","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.12","6.0.13","6.0.14","6.0.15","6.0.16","6.0.17","6.0.18","6.0.19","6.0.2","6.0.20","6.0.21","6.0.22","6.0.23","6.0.24","6.0.25","6.0.26","6.0.27","6.0.28","6.0.29","6.0.3","6.0.30","6.0.31","6.0.32","6.0.33","6.0.34","6.0.35","6.0.36","6.0.37","6.0.38","6.0.39","6.0.4","6.0.40","6.0.41","6.0.42","6.0.43","6.0.44","6.0.45","6.0.46","6.0.47","6.0.48","6.0.49","6.0.5","6.0.50","6.0.51","6.0.52","6.0.53","6.0.54","6.0.55","6.0.56","6.0.57","6.0.58","6.0.59","6.0.6","6.0.60","6.0.61","6.0.62","6.0.63","6.0.64","6.0.65","6.0.66","6.0.67","6.0.68","6.0.69","6.0.7","6.0.70","6.0.71","6.0.72","6.0.73","6.0.74","6.0.75","6.0.76","6.0.77","6.0.78","6.0.79","6.0.8","6.0.80","6.0.81","6.0.82","6.0.83","6.0.84","6.0.85","6.0.86","6.0.87","6.0.88","6.0.89","6.0.9","6.0.90","6.0.91","6.0.92","6.0.93","6.0.94","6.0.95","6.0.96","6.0.97"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-r32w-v775-5952/GHSA-r32w-v775-5952.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.4.13.u30"},{"fixed":"7.4.13.u37"}]}],"versions":["7.4.13.u30","7.4.13.u31","7.4.13.u32","7.4.13.u33","7.4.13.u34","7.4.13.u35","7.4.13.u36"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-r32w-v775-5952/GHSA-r32w-v775-5952.json","last_known_affected_version_range":"\u003c= 7.4.13.u36"}}],"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"}]}