Moderate severityNVD Advisory· Published Oct 21, 2025· Updated Oct 21, 2025
CVE-2025-62249
CVE-2025-62249
Description
A reflected cross-site scripting (XSS) vulnerability in the Liferay Portal 7.4.0 through 7.4.3.132, and Liferay DXP 2025.Q3.0 through 2025.Q3.2, 2025.Q2.0 through 2025.Q2.12, 2025.Q1.0 through 2025.Q1.17, 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.20, and 2023.Q4.0 through 2023.Q4.10 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:com.liferay.portal.implMaven | <= 114.1.0 | — |
Affected products
2- Liferay/DXPv5Range: 2023.Q4.0
Patches
31 file changed · +1 −1
portal-impl/test/unit/com/liferay/portal/servlet/GoogleGadgetServletTest.java+1 −1 modified@@ -44,7 +44,7 @@ public void setUp() { } @Test - public void testEscape() throws Exception { + public void testGetContent() throws Exception { String injection = "x\"/><x:script xmlns:x=\"http://www.w3.org/1999" + "/xhtml\">alert(document.domain)</x:script>";
f041e7058929LPD-63827 change it to escapeAttribute instead of escape
1 file changed · +1 −1
portal-impl/src/com/liferay/portal/servlet/GoogleGadgetServlet.java+1 −1 modified@@ -103,7 +103,7 @@ protected String getContent(HttpServletRequest httpServletRequest) sb.append("<Content type=\"html\">"); sb.append("<![CDATA["); sb.append("<iframe frameborder=\"0\" height=\"100%\" src=\""); - sb.append(HtmlUtil.escape(widgetURL)); + sb.append(HtmlUtil.escapeAttribute(widgetURL)); sb.append("\" width=\"100%\">"); sb.append("</iframe>"); sb.append("]]>");
66c51e026f7cLPD-63827 Escape title
1 file changed · +1 −1
portal-impl/src/com/liferay/portal/servlet/GoogleGadgetServlet.java+1 −1 modified@@ -100,7 +100,7 @@ protected String getContent(HttpServletRequest httpServletRequest) sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); sb.append("<Module>"); sb.append("<ModulePrefs title=\""); - sb.append(title); + sb.append(HtmlUtil.escapeAttribute(title)); sb.append("\"/>"); sb.append("<Content type=\"html\">"); sb.append("<![CDATA[");
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
6- github.com/advisories/GHSA-rx48-gqc2-4w47ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-62249ghsaADVISORY
- github.com/liferay/liferay-portal/commit/66c51e026f7c9eee8f82137a586ceea5bdc081a5ghsaWEB
- github.com/liferay/liferay-portal/commit/8309d01f151124e1af392b67baf9711e46488791ghsaWEB
- github.com/liferay/liferay-portal/commit/f041e7058929618bb101b8e4bae5a8a226e6f8b8ghsaWEB
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-62249ghsaWEB
News mentions
0No linked articles in our index yet.