VYPR
Moderate severityNVD Advisory· Published Sep 22, 2025· Updated Sep 22, 2025

CVE-2025-43807

CVE-2025-43807

Description

Stored cross-site scripting (XSS) vulnerability in the notifications widget in Liferay Portal 7.4.0 through 7.4.3.112, and Liferay DXP 2023.Q4.0 through 2023.Q4.8, 2023.Q3.1 through 2023.Q3.10, and 7.4 GA through update 92 allows remote attackers to inject arbitrary web script or HTML via a crafted payload injected into a publication’s “Name” text field.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.liferay:com.liferay.change.tracking.serviceMaven
< 3.0.913.0.91

Affected products

2

Patches

1
aaf32ff25aff

LPD-15348 Escape publication name in notifications

https://github.com/liferay/liferay-portalCheryl TangFeb 7, 2024via ghsa
2 files changed · +5 2
  • modules/apps/change-tracking/change-tracking-service/src/main/java/com/liferay/change/tracking/internal/background/task/CTPublishBackgroundTaskExecutor.java+3 1 modified
    @@ -42,6 +42,7 @@
     import com.liferay.portal.kernel.transaction.Propagation;
     import com.liferay.portal.kernel.transaction.Transactional;
     import com.liferay.portal.kernel.util.GetterUtil;
    +import com.liferay.portal.kernel.util.HtmlUtil;
     import com.liferay.portal.kernel.util.MapUtil;
     import com.liferay.portal.kernel.workflow.WorkflowConstants;
     
    @@ -280,7 +281,8 @@ public String handleException(
     					JSONUtil.put(
     						"ctCollectionId", fromCTCollectionId
     					).put(
    -						"ctCollectionName", fromCTCollection.getName()
    +						"ctCollectionName",
    +						HtmlUtil.escape(fromCTCollection.getName())
     					).put(
     						"notificationType",
     						UserNotificationDefinition.
    
  • modules/apps/change-tracking/change-tracking-web/src/main/java/com/liferay/change/tracking/web/internal/notifications/PublicationInviteUserNotificationHandler.java+2 1 modified
    @@ -24,6 +24,7 @@
     import com.liferay.portal.kernel.service.ServiceContext;
     import com.liferay.portal.kernel.service.UserGroupRoleLocalService;
     import com.liferay.portal.kernel.service.UserNotificationEventLocalService;
    +import com.liferay.portal.kernel.util.HtmlUtil;
     import com.liferay.portal.kernel.util.Portal;
     
     import javax.portlet.PortletRequest;
    @@ -140,7 +141,7 @@ private String _getMessage(
     		return _language.format(
     			serviceContext.getLocale(), "x-has-invited-you-to-work-on-x-as-a-x",
     			new Object[] {
    -				userName, ctCollection.getName(),
    +				userName, HtmlUtil.escape(ctCollection.getName()),
     				_language.get(
     					serviceContext.getLocale(), _getRoleLabel(roleValue))
     			},
    

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

News mentions

0

No linked articles in our index yet.