VYPR
Moderate severityNVD Advisory· Published Aug 8, 2025· Updated Aug 8, 2025

CVE-2025-4576

CVE-2025-4576

Description

A reflected cross-site scripting (XSS) vulnerability in the Liferay Portal 7.4.0 through 7.4.3.133, and Liferay DXP 2025.Q1.0 through 2025.Q1.4 ,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.15, 7.4 GA through update 92 allows an remote non-authenticated attacker to inject JavaScript into the modules/apps/blogs/blogs-web/src/main/resources/META-INF/resources/blogs/entry_cover_image_caption.jsp

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
com.liferay:com.liferay.blogs.webMaven
< 6.0.1396.0.139

Affected products

2

Patches

1
afd9e7751fff

LPD-50960 escape

https://github.com/liferay/liferay-portalIstvan SajtosMar 12, 2025via ghsa
1 file changed · +1 1
  • modules/apps/blogs/blogs-web/src/main/resources/META-INF/resources/blogs/entry_cover_image_caption.jsp+1 1 modified
    @@ -19,7 +19,7 @@ String viewEntryURL = ParamUtil.getString(request, "viewEntryURL");
     	</c:if>
     
     	<liferay-ui:csp>
    -		<div <c:if test="<%= Validator.isNotNull(coverImageCaption) %>">aria-label="<%= HtmlUtil.escapeAttribute(HtmlUtil.stripHtml(coverImageCaption)) %>" role="img"</c:if> class="aspect-ratio aspect-ratio-8-to-3 aspect-ratio-bg-cover cover-image" style="background-image: url(<%= coverImageURL %>);"></div>
    +		<div <c:if test="<%= Validator.isNotNull(coverImageCaption) %>">aria-label="<%= HtmlUtil.escapeAttribute(HtmlUtil.stripHtml(coverImageCaption)) %>" role="img"</c:if> class="aspect-ratio aspect-ratio-8-to-3 aspect-ratio-bg-cover cover-image" style="background-image: url(<%= HtmlUtil.escapeAttribute(coverImageURL) %>);"></div>
     	</liferay-ui:csp>
     
     	<c:if test="<%= Validator.isNotNull(viewEntryURL) %>">
    

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.