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

CVE-2025-27330: PlayerJS DOM-Based XSS Vulnerability

CVE-2025-27330 is a DOM-based cross-site scripting vulnerability in PlayerJS that allows attackers to inject malicious scripts through improper input neutralization. This article covers technical details, affected versions through 2.23, impact assessment, and mitigation strategies.

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

CVE-2025-27330 is a DOM-based Cross-Site Scripting (XSS) vulnerability [CWE-79] in the PlayerJS WordPress plugin. The flaw affects all versions of PlayerJS up to and including 2.23. Improper neutralization of input during web page generation allows an attacker to inject and execute arbitrary JavaScript in a victim's browser context. Exploitation requires low-privileged authentication and user interaction, and the attack impacts resources beyond the vulnerable component because the scope is changed.

Critical Impact

Attackers with low-privileged access can execute arbitrary JavaScript in site visitors' or administrators' browsers, enabling session hijacking, credential theft, and unauthorized actions on behalf of the victim.

Affected Products

  • PlayerJS WordPress plugin versions up to and including 2.23
  • WordPress sites running the vulnerable playerjs plugin
  • Site visitors and administrators who load content rendered by PlayerJS

Discovery Timeline

  • 2025-02-24 - CVE-2025-27330 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-27330

Vulnerability Analysis

The vulnerability resides in the client-side logic of the PlayerJS WordPress plugin. The plugin consumes attacker-influenced input and writes it to the Document Object Model (DOM) without proper sanitization or encoding. Because the dangerous sink executes in the victim's browser rather than on the server, the vulnerability is classified as DOM-based XSS. The attack vector is network-based, and successful exploitation requires the victim to interact with a crafted URL or page element.

The changed scope indicates that injected scripts can affect resources outside the plugin's own security domain, such as the broader WordPress session context. This elevates the impact beyond typical reflected XSS confined to a single component.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. The PlayerJS plugin passes untrusted data to a DOM sink such as innerHTML, document.write, or an equivalent assignment that interprets HTML and script content. Because the plugin does not encode or filter this input before writing it to the DOM, attacker-controlled markup is parsed and executed by the browser.

Attack Vector

An authenticated attacker with low privileges crafts input, such as a media URL, configuration value, or query parameter, that reaches the vulnerable DOM sink. When a victim loads a page containing the tainted content, the browser executes the injected JavaScript under the origin of the WordPress site. The attacker can then exfiltrate cookies, hijack sessions, modify page content, or pivot to administrator accounts. See the Patchstack XSS Vulnerability Advisory for additional technical context.

Detection Methods for CVE-2025-27330

Indicators of Compromise

  • Unexpected <script> tags, event handlers, or javascript: URIs persisted in PlayerJS plugin configuration or post content
  • Outbound requests from browser sessions to unknown external domains after loading pages that embed PlayerJS
  • WordPress audit log entries showing low-privileged accounts modifying media or shortcode fields that feed PlayerJS

Detection Strategies

  • Scan WordPress database tables for PlayerJS-related entries containing HTML tags, encoded payloads, or suspicious JavaScript patterns
  • Review web server logs for requests containing XSS payload fragments such as onerror=, onload=, or encoded <script> sequences targeting PlayerJS endpoints
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script violations originating from plugin-rendered pages

Monitoring Recommendations

  • Monitor the WordPress plugin inventory for sites running playerjs version 2.23 or earlier
  • Alert on CSP violation reports referencing PlayerJS-generated DOM elements
  • Track administrative session anomalies, including concurrent sessions and unexpected privilege changes, after visits to pages embedding PlayerJS

How to Mitigate CVE-2025-27330

Immediate Actions Required

  • Identify all WordPress installations running the PlayerJS plugin and inventory the installed version
  • Update the PlayerJS plugin to a version later than 2.23 once the vendor publishes a fixed release
  • Restrict contributor and author roles that can submit content processed by PlayerJS until the plugin is patched
  • Rotate WordPress administrator credentials and invalidate active sessions if exploitation is suspected

Patch Information

At the time of publication, the advisory tracked by Patchstack identifies all PlayerJS versions through 2.23 as vulnerable. Administrators should consult the Patchstack XSS Vulnerability Advisory and the WordPress plugin repository for the latest fixed release and apply it across all affected sites.

Workarounds

  • Deactivate and remove the PlayerJS plugin until a patched version is available
  • Enforce a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins
  • Place the WordPress site behind a web application firewall (WAF) with rules that block common XSS payload patterns targeting plugin parameters
  • Limit account creation and reduce the number of users with content-publishing privileges to shrink the attack surface

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.