# CVE-2022-42112: Liferay Portal and Liferay DXP Vulnerable to XSS via the Portal Search Module

Source: https://junglewise.ai/threats/cve-2022-42112-liferay-portal-and-liferay-dxp-vulnerable-to-xss-via-the-portal  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-19  
License: CC BY 4.0 with a link back

CVE-2022-42112 · Severity: low · CVSS 3.1 · Published 2022-10-19

Liferay Portal and Liferay DXP Vulnerable to XSS via the Portal Search Module

Technologies: [com.liferay:com.liferay.portal.search.web (Maven)](https://junglewise.ai/threats/technologies/com-liferay-com-liferay-portal-search-web), [com.liferay.portal:release.dxp.bom (Maven)](https://junglewise.ai/threats/technologies/com-liferay-portal-release-dxp-bom). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-42112 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-42112 being exploited in the wild.

**How severe is CVE-2022-42112?** Low severity, with a CVSS score of 3.1, published 19 October 2022.

**Which products and versions are affected?** com.liferay:com.liferay.portal.search.web (Maven) ECOSYSTEM:introduced=0,fixed=6.0.45; com.liferay.portal:release.dxp.bom (Maven) ECOSYSTEM:introduced=7.2.0,fixed=7.2.10.fp19.

**Is there a fix for CVE-2022-42112?** Yes. com.liferay:com.liferay.portal.search.web (Maven): upgrade to 6.0.45 or later; com.liferay.portal:release.dxp.bom (Maven): upgrade to 7.2.10.fp19 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-42112?** Check whether you run com.liferay:com.liferay.portal.search.web (Maven) or com.liferay.portal:release.dxp.bom (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.liferay:com.liferay.portal.search.web (Maven): upgrade to 6.0.45 or later

  ```sh
  # set com.liferay:com.liferay.portal.search.web to 6.0.45 in your pom.xml or build.gradle
  ```

- com.liferay.portal:release.dxp.bom (Maven): upgrade to 7.2.10.fp19 or later

  ```sh
  # set com.liferay.portal:release.dxp.bom to 7.2.10.fp19 in your pom.xml or build.gradle
  ```


## Affected products

- com.liferay:com.liferay.portal.search.web (Maven) ECOSYSTEM:introduced=0,fixed=6.0.45
- com.liferay.portal:release.dxp.bom (Maven) ECOSYSTEM:introduced=7.2.0,fixed=7.2.10.fp19

## Identifiers

- CVE-2022-42112
- GHSA-7f7g-vhff-mjqj

## Related threats

- [Liferay Portal and Liferay DXP vulnerable to Stored Cross-site Scripting](https://junglewise.ai/threats/cve-2025-43785-liferay-portal-and-liferay-dxp-vulnerable-to-stored-cross-site)
- [Liferay Portal is vulnerable to XSS attack through its search bar portlet](https://junglewise.ai/threats/cve-2025-43781-liferay-portal-is-vulnerable-to-xss-attack-through-its-search-bar)
- [Liferay Portal and Liferay DXP vulnerable to store Cross-site Scripting](https://junglewise.ai/threats/cve-2025-43776-liferay-portal-and-liferay-dxp-vulnerable-to-store-cross-site)
- [Liferay Portal 7.4.0 and Liferay DXP have a reflected cross-site scripting (XSS) vulnerability](https://junglewise.ai/threats/cve-2025-43734-liferay-portal-7-4-0-and-liferay-dxp-have-a-reflected-cross-site)
- [Liferay Portal and Liferay DXP have a reflected cross-site scripting vulnerability](https://junglewise.ai/threats/cve-2025-43735-liferay-portal-and-liferay-dxp-have-a-reflected-cross-site)
