# CVE-2023-42627: Liferay Portal and Liferay DXP Vulnerable to XSS in the Commerce Module

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.6
- **CVSS:** 9.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** BIT-liferay-2023-42627, GHSA-qp68-5v39-r869
- **Published:** 2023-10-17T12:08:22.684Z
- **Modified:** 2026-06-17T06:24:07.800Z

## Who should check

- Projects that depend on Maven package com.liferay.commerce:com.liferay.commerce.address.content.web (\< 4.0.35)
- Projects that depend on Maven package com.liferay.portal:release.dxp.bom (\>= 7.3.0, \<= 7.3.10.u33)
- Anyone running Liferay DXP \>= 7.3.10, \<= 7.3.10.\*; \>= 7.4.13, \<= 7.4.13.u91
- Anyone running Liferay Portal \>= 7.3.5, \<= 7.4.3.91

## 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.

## Affected and fixed versions

- Maven `com.liferay.commerce:com.liferay.commerce.address.content.web`: affected \< 4.0.35; fixed 4.0.35 (osv)
- Maven `com.liferay.portal:release.dxp.bom`: affected \>= 7.3.0, \<= 7.3.10.u33; fixed no fix listed yet (osv)
- Liferay DXP: \>= 7.3.10, \<= 7.3.10.\*; \>= 7.4.13, \<= 7.4.13.u91 (cvelist)
- Liferay Portal: \>= 7.3.5, \<= 7.4.3.91 (cvelist)

## Mitigation

- Upgrade com.liferay.commerce:com.liferay.commerce.address.content.web to 4.0.35 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-42627. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-42627.md
Affected: com.liferay.commerce:com.liferay.commerce.address.content.web < 4.0.35; com.liferay.portal:release.dxp.bom >= 7.3.0, <= 7.3.10.u33
Fixed in: 4.0.35

Steps:
1. Search this machine and project for com.liferay.commerce:com.liferay.commerce.address.content.web (Maven), com.liferay.portal:release.dxp.bom (Maven), Liferay DXP, Liferay Portal: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-42627 being exploited?

There is no confirmed exploitation: CVE-2023-42627 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-42627?

Critical: CVSS 9.6 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-42627?

com.liferay.commerce:com.liferay.commerce.address.content.web \< 4.0.35; com.liferay.portal:release.dxp.bom \>= 7.3.0, \<= 7.3.10.u33.

### Is there a fix for CVE-2023-42627?

Yes. Fixed in 4.0.35. Upgrade com.liferay.commerce:com.liferay.commerce.address.content.web to 4.0.35 or later.

### How do I check if I'm affected by CVE-2023-42627?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42627>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-42627>
- exploit: <https://www.pentagrid.ch/en/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/>
- other: <https://github.com/liferay/liferay-portal>
- other: <https://www.pentagrid.ch/en/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-42627>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qp68-5v39-r869> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-42627> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-42627>
