CVE-2025-43804 Liferay search widget vulnerable to Cross-site Scripting

Medium 5.1 Published Updated

Remote attackers can inject arbitrary web script or HTML via the Search widget userId parameter in Liferay Portal and DXP.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-43804?

CVE-2025-43804 is a medium-severity cross-site scripting vulnerability in Liferay Digital Experience Platform, published on 16 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in Search widget in Liferay Portal 7.4.3.93 through 7.4.3.111, and Liferay DXP 2023.Q4.0, 2023.Q3.1 through 2023.Q3.4 allows remote attackers to inject arbitrary web script or HTML via the _com_liferay_portal_search_web_portlet_SearchPortlet_userId parameter.

Weakness: CWE-79

Which versions are affected by CVE-2025-43804?

2 open source packages ship an affected version, including com.liferay:com.liferay.portal.search. It affects 2 products.

PackageAffectedFixed in
com.liferay:com.liferay.portal.search MavenAll versions8.0.93
com.liferay:com.liferay.portal.search MavenAll versions8.0.93

Products include Liferay Digital Experience Platform, Liferay Liferay Portal.

How do I fix CVE-2025-43804?

Upgrade com.liferay:com.liferay.portal.search to 8.0.93 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-43804 being exploited?

There is no known exploitation of CVE-2025-43804 in the wild and no public exploit code.

All Liferay Digital Experience Platform vulnerabilities

Sources

Also known as GHSA-ccrc-5vp5-vp5j.

Is CVE-2025-43804 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free