WaratekVRT Sign in

CVE-2022-42118 Liferay Portal

Affected softwareLiferay Portal
Severity6.1 Medium CVSS 3.1 2 scores
Fixed in6.0.12
WeaknessCross-site scripting (CWE-79)
Published15 Nov 2022
Updated9 Jul 2026

Description

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.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 1 indexed Published artifacts you can open, in Nuclei.
  • EPSS 1.3% chance in 30 days
IndexArtifactStarsFirst seen
Nuclei Liferay Portal - Cross-site Scripting

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: com.liferay:com.liferay.portal.search.web, com.liferay.portal:release.dxp.bom), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

6.1 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N NVD Primary published
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CISA-ADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.liferay:com.liferay.portal.search.web 0 6.0.12 unbounded
com.liferay.portal:release.dxp.bom 7.1.0 7.1.10.fp27 unbounded
com.liferay.portal:release.dxp.bom 7.2.0 7.2.10.fp15 unbounded

Products and versions

5 products, 48 version entries
SourceVendorProductSchemeAffected versions
osv com.liferay com.liferay.portal.search.web generic < 6.0.12
osv com.liferay.portal release.dxp.bom generic ≥ 7.1.0 and < 7.1.10.27 · ≥ 7.2.0 and < 7.2.10.15
nvd liferay digital experience platform generic 7.1 · 7.1:fix_pack_1 · 7.1:fix_pack_2 · 7.1:fix_pack_3 · 7.1:fix_pack_4 · 7.1:fix_pack_5 · 7.1:fix_pack_6 · 7.1:fix_pack_7 · 7.1:fix_pack_8 · 7.1:fix_pack_9 · 7.1:fix_pack_10 · 7.1:fix_pack_11 · 7.1:fix_pack_12 · 7.1:fix_pack_13 · 7.1:fix_pack_14 · 7.1:fix_pack_15 · 7.1:fix_pack_16 · 7.1:fix_pack_17 · 7.1:fix_pack_18 · 7.1:fix_pack_19 · 7.1:fix_pack_20 · 7.1:fix_pack_21 · 7.1:fix_pack_22 · 7.1:fix_pack_23 · 7.1:fix_pack_24 · 7.1:fix_pack_25 · 7.2 · 7.2:fix_pack_1 · 7.2:fix_pack_2 · 7.2:fix_pack_3 · 7.2:fix_pack_4 · 7.2:fix_pack_5 · 7.2:fix_pack_6 · 7.2:fix_pack_7 · 7.2:fix_pack_8 · 7.2:fix_pack_9 · 7.2:fix_pack_10 · 7.2:fix_pack_11 · 7.2:fix_pack_12 · 7.2:fix_pack_13 · 7.2:fix_pack_14
nvd liferay dxp generic 7.3 · 7.3:sp1 · 7.3:sp2
nvd liferay liferay portal generic ≥ 7.1.0 and ≤ 7.4.2

References

URLTags
https://github.com/liferay/liferay-portal/commit/b42f1e70a69a31a3f2f7004a5b1923ec1e1e5445 WEB
https://github.com/liferay/liferay-portal PACKAGE
https://issues.liferay.com/browse/LPE-17342 WEB
https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2022-42118?p_r_p_assetEntryId=121613298&_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_redirect=https%3A%2F%2Fliferay.dev%3A443%2Fportal%2Fsecurity%2Fknown-vulnerabilities%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_r_p_assetEntryId%3D121613298%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_jekt_cur%3D0%26p_r_p_resetCur%3Dfalse WEB
http://liferay.com WEB
https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42118 Vendor Advisory

Timeline

Published2022-11-15By the CVE Program.
NVD record modified2026-07-09NVD's own last-modified date for this record.