CVE-2022-42119 Liferay Portal and Liferay DXP Vulnerable to XSS via the Commerce Module

Medium 5.4 Published Updated

Attackers can inject malicious scripts via the Commerce module in Liferay Portal, potentially leading to session hijacking or code execution.

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-2022-42119?

CVE-2022-42119 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 15 Nov 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Certain Liferay products are vulnerable to Cross Site Scripting (XSS) via the Commerce module. This affects Liferay Portal 7.3.5 through 7.4.2 and Liferay DXP 7.3 before update 8.

Weakness: CWE-79

Which versions are affected by CVE-2022-42119?

4 open source packages ship an affected version, including com.liferay.portal:release.dxp.bom and com.liferay.commerce:com.liferay.commerce.catalog.web. It affects 2 products.

PackageAffectedFixed in
com.liferay.portal:release.dxp.bom MavenFrom 7.3.07.3.10.u8
com.liferay.portal:release.dxp.bom MavenFrom 7.3.07.3.10.u8
com.liferay.commerce:com.liferay.commerce.catalog.web MavenAll versions4.0.8
com.liferay.commerce:com.liferay.commerce.catalog.web MavenAll versions4.0.8

Products include Liferay Dxp, Liferay Liferay Portal.

How do I fix CVE-2022-42119?

Upgrade com.liferay.portal:release.dxp.bom to 7.3.10.u8 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-2022-42119 being exploited?

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

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-wjfm-qxg2-q679.

Is CVE-2022-42119 in your software?

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

Check your SBOMs for free