CVE-2025-43771 Liferay Portal Notifications Widget has multiple XSS vulnerabilities through various text fields

Medium 4.8 Published Updated

Remote attackers can inject arbitrary web script or HTML via user profile fields and content flagging in Liferay Portal, potentially leading to session hijacking or malicious actions.

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

What is CVE-2025-43771?

CVE-2025-43771 is a medium-severity cross-site scripting vulnerability in Liferay Digital Experience Platform, published on 8 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Multiple cross-site scripting (XSS) vulnerabilities in the Notifications widget in Liferay Portal 7.4.3.102 through 7.4.3.111, and Liferay DXP 2023.Q4.0 through 2023.Q4.5 and 2023.Q3.1 through 2023.Q3.10 allow remote attackers to inject arbitrary web script or HTML via a crafted payload injected into (1) a user’s “First Name” text field, (2) a user’s “Middle Name” text field, (3) a user’s “Last Name” text field, (4) the “Other Reason” text field when flagging content, or (5) the name of the flagged content.

Weakness: CWE-79

Which versions are affected by CVE-2025-43771?

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

PackageAffectedFixed in
com.liferay:com.liferay.flags.web MavenFrom 6.0.236.0.24
com.liferay:com.liferay.flags.web MavenFrom 6.0.236.0.24

Products include Liferay Digital Experience Platform, Liferay Liferay Portal.

How do I fix CVE-2025-43771?

Upgrade com.liferay:com.liferay.flags.web to 6.0.24 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-43771 being exploited?

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

All Liferay Digital Experience Platform vulnerabilities

Sources

Also known as GHSA-q8fj-76q7-4p7h.

Is CVE-2025-43771 in your software?

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

Check your SBOMs for free