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.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Liferay Portal - Cross-site Scripting http/cves/2022/CVE-2022-42118.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.liferay:com.liferay.portal.search.web | < 6.0.12 | 6.0.12 | GHSA-mr77-4pm4-x9vm |
| Maven | com.liferay.portal:release.dxp.bom | >= 7.1.0, < 7.1.10.fp27 | 7.1.10.fp27 | GHSA-mr77-4pm4-x9vm |
| Maven | com.liferay.portal:release.dxp.bom | >= 7.2.0, < 7.2.10.fp15 | 7.2.10.fp15 | GHSA-mr77-4pm4-x9vm |