Vulnerabilities · 2022 · Liferay
CVE-2022-42118
Liferay Portal vulnerability
A Cross-site scripting (XSS) vulnerability in the Portal Search module in 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.
Affected products
Liferay Portal, Digital Experience Platform, Dxp. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Liferay Portal runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- liferay.com · Vendor Advisory
- issues.liferay.com/browse/LPE-17342 · Vendor Advisory
- portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/con · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-42118
- github.com/liferay/liferay-portal/commit/b42f1e70a69a31a3f2f7004a5b1923ec1e1e5445
- github.com/advisories/GHSA-mr77-4pm4-x9vm
- nvd.nist.gov/vuln/detail/CVE-2022-42118
- cve.org/CVERecord?id=CVE-2022-42118
More vulnerabilities in Liferay products
CVE-2025-62276CVE-2025-62275CVE-2025-62267CVE-2025-62266CVE-2025-62265CVE-2025-62264CVE-2025-62263CVE-2025-62262All 338
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.