# CVE-2025-43781: Liferay Portal is vulnerable to XSS attack through its search bar portlet

Source: https://junglewise.ai/threats/cve-2025-43781-liferay-portal-is-vulnerable-to-xss-attack-through-its-search-bar  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-09  
License: CC BY 4.0 with a link back

CVE-2025-43781 · Severity: medium · CVSS 4 · Published 2025-09-09

Liferay Portal is vulnerable to XSS attack through its search bar portlet

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

## Quick answers

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

**How severe is CVE-2025-43781?** Medium severity, with a CVSS score of 4, published 9 September 2025.

**Which products and versions are affected?** com.liferay:com.liferay.portal.search.web (Maven) ECOSYSTEM:introduced=6.0.125,fixed=6.0.143.

**Is there a fix for CVE-2025-43781?** Yes. com.liferay:com.liferay.portal.search.web (Maven): upgrade to 6.0.143 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-43781?** Check whether you run com.liferay:com.liferay.portal.search.web (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.143 or later

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


## Affected products

- com.liferay:com.liferay.portal.search.web (Maven) ECOSYSTEM:introduced=6.0.125,fixed=6.0.143

## Identifiers

- CVE-2025-43781
- GHSA-x5fw-8xgx-q6c9

## Related threats

- [Liferay Portal and Liferay DXP Vulnerable to XSS via the Portal Search Module](https://junglewise.ai/threats/cve-2022-42118-liferay-portal-and-liferay-dxp-vulnerable-to-xss-via-the-portal)
- [Liferay Portal and Liferay DXP Vulnerable to XSS via the Portal Search Module](https://junglewise.ai/threats/cve-2022-42112-liferay-portal-and-liferay-dxp-vulnerable-to-xss-via-the-portal)
- [Liferay Portal and Liferay DXP Vulnerable to XSS in the Portal Search Module](https://junglewise.ai/threats/cve-2022-28979-liferay-portal-and-liferay-dxp-vulnerable-to-xss-in-the-portal)
- [Liferay Portal Vulnerable to XSS in Profile Search Functionality](https://junglewise.ai/threats/cve-2016-3670-liferay-portal-vulnerable-to-xss-in-profile-search-functionality)
