Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-3760 Overview
CVE-2025-3760 is a stored cross-site scripting (XSS) vulnerability affecting radio button type custom fields in Liferay Portal and Liferay Digital Experience Platform (DXP). The flaw allows remote authenticated attackers with elevated privileges to inject malicious JavaScript into pages that render the affected custom field. When another user views a page containing the poisoned custom field, the injected script executes in the victim's browser session under the Liferay origin. The issue is tracked under CWE-79 and is documented in the Liferay Security Advisory CVE-2025-3760.
Critical Impact
Authenticated attackers can persist JavaScript payloads that execute in the browser of any user rendering the affected custom field, enabling session theft, forced actions, and content manipulation within the Liferay portal.
Affected Products
- Liferay Portal 7.2.0 through 7.4.3.129 (including 7.4 GA through update 92, 7.3 GA through update 36, 7.2 GA through fix pack 20)
- Liferay DXP 2024.Q4.1 through 2024.Q4.7, 2024.Q3.1 through 2024.Q3.9, 2024.Q2.0 through 2024.Q2.13, 2024.Q1.1 through 2024.Q1.12
- Liferay DXP 2023.Q4.0 through 2023.Q4.10 and 2023.Q3.1 through 2023.Q3.10
Discovery Timeline
- 2025-04-17 - CVE-2025-3760 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-3760
Vulnerability Analysis
The vulnerability resides in how Liferay handles values submitted to custom fields of the radio button type. Values entered when defining or modifying a radio button custom field are not sufficiently sanitized before being written into HTML output. This permits an authenticated user with permission to configure custom fields to store an HTML or JavaScript payload that persists in the portal's data store.
When any subsequent user loads a page that renders the affected custom field, the stored payload is emitted directly into the page markup. The browser then interprets the injected content as executable script rather than as text, satisfying the conditions for stored XSS as classified by CWE-79.
Exploitation requires authentication and user interaction to trigger, which limits blast radius but does not eliminate risk in multi-tenant portals, intranet deployments, or customer-facing DXP sites where lower-privileged administrators exist.
Root Cause
The underlying defect is improper neutralization of user-supplied input during web page generation. The radio button custom field code path trusts the stored value and does not apply contextual HTML output encoding before rendering the field label or option values in the resulting DOM.
Attack Vector
An authenticated attacker with permission to create or edit radio button custom fields supplies a payload containing HTML event handlers or <script> content in the field definition or option values. The payload is persisted server-side. When a victim navigates to any page that displays the custom field, the browser parses the injected markup and executes the attacker-controlled script in the context of the Liferay origin, enabling session token access, action forgery, and UI redressing.
No public proof-of-concept exploit is listed for this CVE. Refer to the Liferay Security Advisory CVE-2025-3760 for the vendor's technical description.
Detection Methods for CVE-2025-3760
Indicators of Compromise
- Radio button custom field labels or option values containing HTML tags such as <script>, <img>, <svg>, or inline event handlers like onerror=, onload=, or onmouseover=.
- Portal audit log entries showing custom field modifications by non-administrative accounts followed by unusual page views from other users.
- Browser console errors or unexpected outbound requests originating from pages that render Liferay custom fields.
Detection Strategies
- Query the Liferay database tables that store custom field definitions and values for entries containing angle brackets, JavaScript URI schemes, or common XSS sink patterns.
- Deploy web application firewall rules that inspect POST requests to Liferay custom field administration endpoints for script-like payloads.
- Enable and review Liferay audit logging to correlate custom field write operations with the accounts that performed them.
Monitoring Recommendations
- Alert on any modification of custom field configurations outside of approved change windows.
- Monitor Content Security Policy (CSP) violation reports from portal users, which frequently surface stored XSS attempts.
- Track authentication events for accounts with Update Expando or equivalent custom field permissions and flag anomalous activity.
How to Mitigate CVE-2025-3760
Immediate Actions Required
- Apply the patches referenced in the Liferay Security Advisory CVE-2025-3760 to all affected Portal and DXP instances.
- Review existing radio button custom field definitions and values for any content containing HTML or JavaScript, and remove or sanitize the entries.
- Restrict permissions to create and modify custom fields to a minimal set of trusted administrators.
Patch Information
Liferay has published fixes for the affected Portal and DXP release lines. Consult the vendor advisory for the specific update, service pack, or fix pack that resolves the issue for each supported branch, and plan an upgrade path from unsupported versions such as Portal 7.2 GA through fix pack 20 to a currently maintained release.
Workarounds
- Enforce a strict Content Security Policy that disallows inline scripts and untrusted script sources to reduce the impact of stored XSS payloads.
- Remove the radio button custom field type from user-editable content templates until patches are applied.
- Deploy a web application firewall signature that blocks HTML tags and event handlers submitted to Liferay custom field administrative endpoints.
# Example Content Security Policy header to reduce stored XSS impact
# Configure at the reverse proxy or in Liferay's portal-ext.properties web server layer
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

