Moderate severityNVD Advisory· Published Aug 12, 2025· Updated Aug 12, 2025
CVE-2025-43735
CVE-2025-43735
Description
A reflected cross-site scripting (XSS) vulnerability in the Liferay Portal 7.4.0 through 7.4.3.131, and Liferay DXP 2024.Q4.0 through 2024.Q4.7, 2024.Q3.1 through 2024.Q3.13, 2024.Q2.0 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.12 and 7.4 GA through update 92 allows an remote non-authenticated attacker to inject JavaScript into the google_gadget.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay.portal:release.portal.bomMaven | >= 7.4.0, < 7.4.3.132 | 7.4.3.132 |
com.liferay.portal:release.dxp.bomMaven | >= 2024.q4.0, <= 2024.q4.7 | — |
com.liferay.portal:release.dxp.bomMaven | >= 2024.q3.0, <= 2024.q3.13 | — |
com.liferay.portal:release.dxp.bomMaven | >= 2024.q2.0, <= 2024.q2.13 | — |
com.liferay.portal:release.dxp.bomMaven | >= 2024.q1.0, < 2024.q1.13 | 2024.q1.13 |
com.liferay.portal:release.dxp.bomMaven | <= 7.4.13.u92 | — |
com.liferay.portal:com.liferay.portal.implMaven | >= 7.0.4, < 109.1.0 | 109.1.0 |
Affected products
2- Liferay/DXPv5Range: 7.4.13
Patches
164d19e457ffcLPD-45409 escape user input
1 file changed · +2 −1
portal-impl/src/com/liferay/portal/servlet/GoogleGadgetServlet.java+2 −1 modified@@ -14,6 +14,7 @@ import com.liferay.portal.kernel.servlet.ServletResponseUtil; import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.Portal; import com.liferay.portal.kernel.util.PortalUtil; import com.liferay.portal.kernel.util.Validator; @@ -104,7 +105,7 @@ protected String getContent(HttpServletRequest httpServletRequest) sb.append("<Content type=\"html\">"); sb.append("<![CDATA["); sb.append("<iframe frameborder=\"0\" height=\"100%\" src=\""); - sb.append(widgetURL); + sb.append(HtmlUtil.escape(widgetURL)); sb.append("\" width=\"100%\">"); sb.append("</iframe>"); sb.append("]]>");
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-222w-xmc5-jhp3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-43735ghsaADVISORY
- github.com/liferay/liferay-portal/commit/64d19e457ffc9876fd159a907741618843d7aadbghsaWEB
- liferay.atlassian.net/browse/LPE-18158ghsaWEB
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-43735ghsaWEB
News mentions
0No linked articles in our index yet.