CVE-2022-42117 Liferay Portal and Liferay DXP Vulnerable to XSS in the Frontend Taglib Module
Remote attackers can inject arbitrary web script or HTML via the Frontend Taglib module in 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-42117?
CVE-2022-42117 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 Taglib module in Liferay Portal 7.3.2 through 7.4.3.16, and Liferay DXP 7.3 before update 6, and 7.4 before update 17 allows remote attackers to inject arbitrary web script or HTML.
Weakness: CWE-79
Which versions are affected by CVE-2022-42117?
6 open source packages ship an affected version, including com.liferay.portal:release.dxp.bom and com.liferay:com.liferay.frontend.taglib.clay. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
com.liferay.portal:release.dxp.bom Maven | From 7.3.0 | 7.3.10.u6 |
com.liferay.portal:release.dxp.bom Maven | From 7.3.0 | 7.3.10.u6 |
com.liferay.portal:release.dxp.bom Maven | From 7.4.0 | 7.4.13.u17 |
com.liferay.portal:release.dxp.bom Maven | From 7.4.0 | 7.4.13.u17 |
com.liferay:com.liferay.frontend.taglib.clay Maven | All versions | 9.1.7 |
com.liferay:com.liferay.frontend.taglib.clay Maven | All versions | 9.1.7 |
Products include Liferay Dxp, Liferay Liferay Portal.
How do I fix CVE-2022-42117?
Upgrade com.liferay.portal:release.dxp.bom to a fixed version for your release line: 7.3.10.u6 or 7.4.13.u17.
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-42117 being exploited?
There is no known exploitation of CVE-2022-42117 in the wild and no public exploit code.
Other vulnerabilities in Liferay Liferay Portal
- CVE-2022-42120 Liferay Portal and Liferay DXP Vulnerable to SQL Injection via the Fragment Module
- CVE-2022-42122 Liferay Portal and Liferay DXP Vulnerable to SQL Injection via Friendly URL Module
- CVE-2023-35030 Liferay Portal and Liferay DXP Vulnerable to CSRF via the Layout Module
- CVE-2021-29053 Liferay Portal and Liferay DXP Vulnerable to Multiple SQL Injections
- CVE-2021-33321 Liferay Portal and Liferay DXP insecure default configuration
Sources
Also known as GHSA-g6r2-6x46-jpp6.