Skip to main content
Vulnerability Database/CVE-2025-43820

CVE-2025-43820: Liferay DXP Calendar Widget XSS Vulnerability

CVE-2025-43820 is a cross-site scripting flaw in Liferay Digital Experience Platform Calendar widget that lets attackers inject malicious scripts through user name fields. This post covers technical details, affected versions, and mitigation.

Published:

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-43820 Overview

CVE-2025-43820 describes multiple stored cross-site scripting (XSS) vulnerabilities in the Calendar widget of Liferay Portal and Liferay Digital Experience Platform (DXP). The flaws occur when inviting users to an event. An authenticated attacker can inject arbitrary HTML or JavaScript via a target user's First Name, Middle text, or Last Name profile fields. When those invitee details render inside the Calendar widget, the injected script executes in the browser context of other users. Affected deployments include Liferay Portal 7.4.3.35 through 7.4.3.110 and multiple Liferay DXP branches on 7.3, 7.4, and 2023.Q3/Q4 release trains.

Critical Impact

Authenticated attackers can store malicious scripts in user profile name fields, triggering script execution against Calendar widget users and enabling session abuse, UI redress, or data exfiltration from the Liferay session.

Affected Products

  • Liferay Portal 7.4.3.35 through 7.4.3.110
  • Liferay DXP 7.4 update 35 through update 92, and 7.3 update 25 through update 35
  • Liferay DXP 2023.Q4.0 through 2023.Q4.4 and 2023.Q3.1 through 2023.Q3.6

Discovery Timeline

  • 2025-09-29 - CVE-2025-43820 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-43820

Vulnerability Analysis

The issue is a stored XSS flaw [CWE-79] in the Liferay Calendar widget's event-invite workflow. When an organizer invites users to a calendar event, the widget renders invitee identity fields in the browser without adequate output encoding. Any script payload previously saved into a user's First Name, Middle text, or Last Name field is executed when another authenticated user views the invite list. Because the payload persists in user profile data, it fires repeatedly for every viewer of the affected event. The attacker requires low privileges and some user interaction, but the exploitation surface is any portal that uses the Calendar widget with multiple users.

Root Cause

Liferay's Calendar widget concatenates invitee display names into rendered HTML without consistently applying contextual escaping. The underlying profile fields accept HTML metacharacters without sanitization at write time. When the Calendar view template reads these values and emits them to the DOM, markup and <script> constructs are interpreted by the browser rather than displayed as literal text.

Attack Vector

An attacker first saves a payload into their own profile name fields through standard account settings. The attacker then either requests to be invited to an event or is routinely included in meeting invites. When any authenticated user opens the Calendar widget and views the invitee list for that event, the browser executes the stored payload under the Liferay session origin. Impact includes stealing session identifiers, abusing CSRF-protected endpoints, altering rendered content, or pivoting to administrator accounts if an admin triggers the render.

No public proof-of-concept or exploit code is listed for CVE-2025-43820, and it is not present in the CISA Known Exploited Vulnerabilities catalog. See the Liferay CVE-2025-43820 Advisory for vendor-published details.

Detection Methods for CVE-2025-43820

Indicators of Compromise

  • User profile records whose firstName, middleName, or lastName fields contain HTML tags, <script> markers, on*= event handlers, or javascript: URIs.
  • Outbound browser requests from Calendar widget pages to unexpected third-party domains, consistent with session or cookie exfiltration.
  • Audit log entries showing profile updates to name fields by low-privilege accounts shortly before Calendar event creations or invite activity.

Detection Strategies

  • Query the Liferay user table (for example User_ columns firstName, middleName, lastName) for payload signatures such as <, >, script, onerror, onload, and javascript:.
  • Enable and review Content Security Policy (CSP) violation reports from browsers loading Calendar widget pages.
  • Hunt in web access logs for POST requests to user profile update endpoints that carry encoded script payloads in name parameters.

Monitoring Recommendations

  • Alert on profile edits where name fields contain non-alphabetic characters outside expected locale sets.
  • Monitor Calendar widget page views for anomalous DOM-based network activity using browser telemetry or a web application firewall.
  • Correlate account creation, name updates, and subsequent Calendar invite acceptance to surface staged XSS attempts.

How to Mitigate CVE-2025-43820

Immediate Actions Required

  • Apply the fixed Liferay Portal and DXP releases referenced in the Liferay CVE-2025-43820 Advisory.
  • Audit all user profile name fields for existing HTML or script content and sanitize or reset affected values.
  • Invalidate active sessions for users who may have viewed Calendar invites containing malicious invitee entries.

Patch Information

Liferay has published fixes through its security advisory portal. Administrators running Liferay Portal 7.4.3.35–7.4.3.110, Liferay DXP 7.3 update 25–35, Liferay DXP 7.4 update 35–92, or Liferay DXP 2023.Q3.1–Q3.6 and 2023.Q4.0–Q4.4 must upgrade to the vendor-listed patched releases. Confirm the applicable fix level in the vendor advisory before deployment.

Workarounds

  • Enforce a strict Content Security Policy on Liferay pages to block inline script execution and restrict script sources.
  • Add server-side validation to reject HTML metacharacters in firstName, middleName, and lastName fields where business requirements allow.
  • Restrict Calendar widget usage or event-invite permissions to trusted user groups until patching is complete.
bash
# Example restrictive CSP header for Liferay reverse proxy (nginx)
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'" always;

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.