Moderate severityNVD Advisory· Published Sep 9, 2025· Updated Sep 10, 2025
CVE-2025-43781
CVE-2025-43781
Description
Reflected cross-site scripting (XSS) vulnerability in Liferay Portal 7.4.3.110 through 7.4.3.128, and Liferay DXP 2024.Q3.1 through 2024.Q3.8, 2024.Q2.0 through 2024.Q2.13 and 2024.Q1.1 through 2024.Q1.12 allows remote attackers to inject arbitrary web script or HTML via the URL in search bar portlet
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.liferay:com.liferay.portal.search.webMaven | >= 6.0.125, < 6.0.143 | 6.0.143 |
Affected products
2- Liferay/DXPv5Range: 2024.Q1.1
Patches
1f6483b5cff5cLPD-39110 portal-search-web: Fix searchURL attribute for searchbar
1 file changed · +1 −1
modules/apps/portal-search/portal-search-web/src/main/resources/META-INF/resources/search/bar/view.jsp+1 −1 modified@@ -54,7 +54,7 @@ SearchBarPortletDisplayContext searchBarPortletDisplayContext = (SearchBarPortle </div> </c:when> <c:otherwise> - <form action="<%= searchBarPortletDisplayContext.getSearchURL() %>" id="<%= randomNamespace %>fm" method="get" name="<%= randomNamespace %>fm"> + <form action="<%= HtmlUtil.escapeAttribute(searchBarPortletDisplayContext.getSearchURL()) %>" id="<%= randomNamespace %>fm" method="get" name="<%= randomNamespace %>fm"> <c:if test="<%= !Validator.isBlank(searchBarPortletDisplayContext.getPaginationStartParameterName()) %>"> <input class="search-bar-reset-start-page" name="<%= searchBarPortletDisplayContext.getPaginationStartParameterName() %>" type="hidden" value="0" /> </c:if>
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-x5fw-8xgx-q6c9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-43781ghsaADVISORY
- github.com/liferay/liferay-portal/commit/f6483b5cff5c07b562c52f9eec336b2ebc9eeacdghsaWEB
- liferay.atlassian.net/browse/LPE-18124ghsaWEB
- liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/CVE-2025-43781ghsaWEB
News mentions
0No linked articles in our index yet.