CVE-2022-42116 Liferay Portal and Liferay DXP Vulnerable to XSS in the CKEditor Integration with the Frontend Editor Module

Medium 6.1 Published Updated

Remote attackers can inject arbitrary web script or HTML via specific parameters in the Frontend Editor module of Liferay Portal.

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

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

A Cross-site scripting (XSS) vulnerability in the Frontend Editor module's integration with CKEditor in Liferay Portal 7.3.2 through 7.4.3.14, and Liferay DXP 7.3 before update 6, and 7.4 before update 15 allows remote attackers to inject arbitrary web script or HTML via the (1) name, or (2) namespace parameter.

Weakness: CWE-79

Which versions are affected by CVE-2022-42116?

6 open source packages ship an affected version, including com.liferay.portal:release.dxp.bom and com.liferay:com.liferay.frontend.editor.ckeditor.web. It affects 2 products.

PackageAffectedFixed in
com.liferay.portal:release.dxp.bom MavenFrom 7.3.07.3.10.u6
com.liferay.portal:release.dxp.bom MavenFrom 7.3.07.3.10.u6
com.liferay.portal:release.dxp.bom MavenFrom 7.4.07.4.13.u15
com.liferay.portal:release.dxp.bom MavenFrom 7.4.07.4.13.u15
com.liferay:com.liferay.frontend.editor.ckeditor.web MavenAll versions5.0.46
com.liferay:com.liferay.frontend.editor.ckeditor.web MavenAll versions5.0.46

Products include Liferay Dxp, Liferay Liferay Portal.

How do I fix CVE-2022-42116?

Upgrade com.liferay.portal:release.dxp.bom to a fixed version for your release line: 7.3.10.u6 or 7.4.13.u15.

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-42116 being exploited?

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

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-67jp-27jj-6x85.

Is CVE-2022-42116 in your software?

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

Check your SBOMs for free