Moderate severityNVD Advisory· Published Aug 23, 2025· Updated Aug 25, 2025
CVE-2025-43765
CVE-2025-43765
Description
A Stored cross-site scripting vulnerability in the Liferay Portal 7.4.0 through 7.4.3.131, and Liferay DXP 2024.Q4.0, 2024.Q3.1 through 2024.Q3.13, 2024.Q2.0 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.13 and 7.4 GA through update 92 allows an remote non-authenticated attacker to inject JavaScript into the text field from a web content.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay:com.liferay.journal.serviceMaven | < 7.0.161 | 7.0.161 |
Affected products
2- Liferay/DXPv5Range: 7.4.13
Patches
16aa0adb0e8d4LPD-43080 Escape field
1 file changed · +4 −0
modules/apps/journal/journal-service/src/main/java/com/liferay/journal/internal/transformer/JournalTransformer.java+4 −0 modified@@ -61,6 +61,7 @@ import com.liferay.portal.kernel.theme.ThemeDisplay; import com.liferay.portal.kernel.util.Constants; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.JavaConstants; import com.liferay.portal.kernel.util.ListUtil; import com.liferay.portal.kernel.util.LocaleUtil; @@ -500,6 +501,9 @@ else if (type.equals(DDMFormFieldTypeConstants.SELECT) && data = JSONUtil.toString(dataJSONArray); } } + else if (type.equals(DDMFormFieldTypeConstants.TEXT)) { + data = HtmlUtil.escape(data); + } if (dynamicContentElement != null) { for (Attribute attribute : dynamicContentElement.attributes()) {
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-h8gx-4hhm-w45vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-43765ghsaADVISORY
- github.com/liferay/liferay-portal/commit/6aa0adb0e8d47794e942fd87074cf05755a2d9bcghsaWEB
- liferay.atlassian.net/browse/LPE-18150ghsaWEB
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-43765ghsaWEB
News mentions
0No linked articles in our index yet.