Moderate severityNVD Advisory· Published Nov 15, 2022· Updated Apr 30, 2025
CVE-2022-42118
CVE-2022-42118
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay:com.liferay.portal.search.webMaven | < 6.0.12 | 6.0.12 |
com.liferay.portal:release.dxp.bomMaven | >= 7.1.0, < 7.1.10.fp27 | 7.1.10.fp27 |
com.liferay.portal:release.dxp.bomMaven | >= 7.2.0, < 7.2.10.fp15 | 7.2.10.fp15 |
Affected products
3- ghsa-coords2 versions
< 6.0.12+ 1 more
- (no CPE)range: < 6.0.12
- (no CPE)range: >= 7.1.0, < 7.1.10.fp27
Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-mr77-4pm4-x9vmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-42118ghsaADVISORY
- liferay.comghsaWEB
- github.com/liferay/liferay-portal/commit/b42f1e70a69a31a3f2f7004a5b1923ec1e1e5445ghsaWEB
- issues.liferay.com/browse/LPE-17342ghsaWEB
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42118ghsaWEB
- portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42118mitre
News mentions
0No linked articles in our index yet.