CVE-2022-42115 Liferay Portal Vulnerable to XSS in the Object Module

Medium 5.4 Published Updated

Remote attackers can inject arbitrary web script or HTML via the Label field in the Object module, 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-2022-42115?

CVE-2022-42115 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 18 Oct 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

Cross-site scripting (XSS) vulnerability in the Object module's edit object details page in Liferay Portal 7.4.3.4 through 7.4.3.36 allows remote attackers to inject arbitrary web script or HTML via a crafted payload injected into the object field's `Label` text field.

Weakness: CWE-79

Which versions are affected by CVE-2022-42115?

2 open source packages ship an affected version, including com.liferay:com.liferay.object.web. It affects 1 product.

PackageAffectedFixed in
com.liferay:com.liferay.object.web MavenAll versions1.0.99
com.liferay:com.liferay.object.web MavenAll versions1.0.99

Products include Liferay Liferay Portal.

How do I fix CVE-2022-42115?

Upgrade com.liferay:com.liferay.object.web to 1.0.99 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-42115 being exploited?

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

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-x43w-xphx-86w3.

Is CVE-2022-42115 in your software?

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

Check your SBOMs for free