CVE-2022-42118: Liferay Portal - Reflected XSS
- Cve: CVE-2022-42118
- Name: Liferay Portal - Reflected XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in the context of the victim's browser, leading to session hijacking or defacement.
- Remediation: Update to the latest fix packs or service packs for the respective versions.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01261
- Epss percentile: 0.70226
- Assignee: [email protected]
- Published at: 2022-11-15T01:15:12Z
- Age in days: 1470
- Modified at: 2026-07-09T01:17:47Z
- References total: 3
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-42118
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2022-42118 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-42118.yaml |
References
| Url | Source | Tags |
|---|---|---|
| https://issues.liferay.com/browse/LPE-17342 | nvd | Vendor Advisory |
| https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42118 | nvd | Vendor Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-42118.yaml | nuclei_template | Nuclei Template |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| liferay:liferay_portal | >= 7.1.0, <= 7.4.2 | /v1/products/liferay/liferay_portal |
| liferay:dxp | = 7.3, = 7.3 sp1, = 7.3 sp2 | /v1/products/liferay/dxp |
| liferay:digital_experience_platform | = 7.1 fix_pack_25, = 7.1 fix_pack_24, = 7.1 fix_pack_23, = 7.1 fix_pack_22, = 7.1 fix_pack_21, = 7.1 fix_pack_20, = 7.1 fix_pack_19, = 7.1 fix_pack_18, = 7.1 fix_pack_17, = 7.1 fix_pack_16, = 7.1 fix_pack_15, = 7.1 fix_pack_14, = 7.2 fix_pack_14, = 7.1 fix_pack_13, = 7.2 fix_pack_13, = 7.1 fix_pack_12, = 7.2 fix_pack_12, = 7.1 fix_pack_11, = 7.2 fix_pack_11, = 7.1 fix_pack_10, = 7.2 fix_pack_10, = 7.1 fix_pack_9, = 7.2 fix_pack_9, = 7.1 fix_pack_8, = 7.2 fix_pack_8, = 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.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 | /v1/products/liferay/digital_experience_platform |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| liferay/liferay-portal | commit, package | yes | /v1/repositories/liferay/liferay-portal |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 2947
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, initial access since, hackerone reports