CWE
79
Advisory Published
Updated

CVE-2022-42118: XSS

First published: Tue Nov 15 2022(Updated: )

A Cross-site scripting (XSS) vulnerability in the Portal Search module in Liferay Portal 7.1.0 through 7.4.2, and Liferay DXP 7.1 before fix pack 27, 7.2 before fix pack 15, and 7.3 before service pack 3 allows remote attackers to inject arbitrary web script or HTML via the `tag` parameter.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Liferay 7.4 GA>=7.1.0<=7.4.2
Liferay 7.4 GA=7.1
Liferay 7.4 GA=7.1-fix_pack_1
Liferay 7.4 GA=7.1-fix_pack_10
Liferay 7.4 GA=7.1-fix_pack_11
Liferay 7.4 GA=7.1-fix_pack_12
Liferay 7.4 GA=7.1-fix_pack_13
Liferay 7.4 GA=7.1-fix_pack_14
Liferay 7.4 GA=7.1-fix_pack_15
Liferay 7.4 GA=7.1-fix_pack_16
Liferay 7.4 GA=7.1-fix_pack_17
Liferay 7.4 GA=7.1-fix_pack_18
Liferay 7.4 GA=7.1-fix_pack_19
Liferay 7.4 GA=7.1-fix_pack_2
Liferay 7.4 GA=7.1-fix_pack_20
Liferay 7.4 GA=7.1-fix_pack_21
Liferay 7.4 GA=7.1-fix_pack_22
Liferay 7.4 GA=7.1-fix_pack_23
Liferay 7.4 GA=7.1-fix_pack_24
Liferay 7.4 GA=7.1-fix_pack_25
Liferay 7.4 GA=7.1-fix_pack_3
Liferay 7.4 GA=7.1-fix_pack_4
Liferay 7.4 GA=7.1-fix_pack_5
Liferay 7.4 GA=7.1-fix_pack_6
Liferay 7.4 GA=7.1-fix_pack_7
Liferay 7.4 GA=7.1-fix_pack_8
Liferay 7.4 GA=7.1-fix_pack_9
Liferay 7.4 GA=7.2
Liferay 7.4 GA=7.2-fix_pack_1
Liferay 7.4 GA=7.2-fix_pack_10
Liferay 7.4 GA=7.2-fix_pack_11
Liferay 7.4 GA=7.2-fix_pack_12
Liferay 7.4 GA=7.2-fix_pack_13
Liferay 7.4 GA=7.2-fix_pack_14
Liferay 7.4 GA=7.2-fix_pack_2
Liferay 7.4 GA=7.2-fix_pack_3
Liferay 7.4 GA=7.2-fix_pack_4
Liferay 7.4 GA=7.2-fix_pack_5
Liferay 7.4 GA=7.2-fix_pack_6
Liferay 7.4 GA=7.2-fix_pack_7
Liferay 7.4 GA=7.2-fix_pack_8
Liferay 7.4 GA=7.2-fix_pack_9
Liferay 7.4 GA=7.3
Liferay 7.4 GA=7.3-sp1
Liferay 7.4 GA=7.3-sp2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-42118?

    CVE-2022-42118 is a Cross-site scripting (XSS) vulnerability in the Portal Search module in Liferay Portal 7.1.0 through 7.4.2, and Liferay DXP 7.1 before fix pack 27, 7.2 before fix pack 15, and 7.3 before service pack 3 that allows remote attackers to inject arbitrary web script or HTML via the tag parameter.

  • Which software versions are affected by CVE-2022-42118?

    CVE-2022-42118 affects Liferay Portal versions 7.1.0 through 7.4.2 and Liferay DXP versions 7.1 before fix pack 27, 7.2 before fix pack 15, and 7.3 before service pack 3.

  • What is the severity of CVE-2022-42118?

    The severity of CVE-2022-42118 is medium, with a CVSS score of 6.1.

  • How can I fix CVE-2022-42118?

    To fix CVE-2022-42118, upgrade Liferay Portal to version 7.4.3 or later, and Liferay DXP to version 7.1 fix pack 27 or later, 7.2 fix pack 15 or later, or 7.3 service pack 3 or later.

  • Where can I find more information about CVE-2022-42118?

    You can find more information about CVE-2022-42118 on the Liferay website, the Liferay issue tracker, and the Liferay security vulnerabilities page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203