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-14865 Overview
CVE-2025-14865 is a Stored Cross-Site Scripting (XSS) vulnerability in the Passster – Password Protect Pages and Content plugin for WordPress. The flaw exists in the plugin's content_protector shortcode and affects all versions up to and including 4.2.24. Authenticated users with Contributor-level access or higher can inject arbitrary web scripts into pages. The scripts execute in the browser of any user who views the affected page. The vulnerability was partially patched in version 4.2.21 [CWE-79].
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, account takeover, and content manipulation.
Affected Products
- Passster – Password Protect Pages and Content plugin for WordPress (all versions ≤ 4.2.24)
- Sites running plugin versions prior to the partial fix in 4.2.21
- WordPress installations allowing Contributor or higher roles to use the content_protector shortcode
Discovery Timeline
- 2026-01-28 - CVE-2025-14865 published to the National Vulnerability Database
- 2026-04-15 - Last updated in NVD database
Technical Details for CVE-2025-14865
Vulnerability Analysis
The Passster plugin provides password protection for WordPress pages and content through the content_protector shortcode. The shortcode accepts attributes that are rendered back into the page output without sufficient sanitization or output encoding. An authenticated user with the ability to publish or edit posts can embed the shortcode with malicious attribute values containing JavaScript. When a visitor renders the page, the injected script executes in the visitor's browser within the site origin.
Because the payload is stored in post content, every viewer of the affected page is exposed. The scope change in the CVSS vector reflects that injected script runs in the trusted site context and can act on resources beyond the vulnerable component itself, including authenticated administrator sessions.
Root Cause
The root cause is improper neutralization of input during web page generation in the shortcode handler implemented in inc/class-ps-public.php. Shortcode attributes are concatenated into HTML output without escaping using WordPress functions such as esc_attr() or esc_html(). The partial fix in version 4.2.21 addressed some injection paths but left exploitable variants until a more complete patch landed in a later release.
Attack Vector
Exploitation requires an authenticated account with Contributor-level access or higher. The attacker creates or edits a post containing the content_protector shortcode with crafted attribute values that break out of the intended HTML context. After the post is published or previewed by another user, the stored payload executes. Typical outcomes include cookie theft, forced administrative actions through CSRF chaining, and redirection to attacker-controlled domains.
No verified public proof-of-concept code is available. See the WordPress Plugin Code Review and the Wordfence Vulnerability Report ID 4ea939f5 for technical details.
Detection Methods for CVE-2025-14865
Indicators of Compromise
- Posts or pages containing the content_protector shortcode with attribute values that include <script>, onerror=, onload=, or javascript: strings
- Unexpected outbound requests from visitor browsers to unfamiliar domains after viewing protected content
- New or modified administrative users created shortly after a contributor account edited a page using the shortcode
- WordPress audit log entries showing Contributor-level accounts editing high-traffic pages
Detection Strategies
- Scan the wp_posts table for shortcode invocations containing HTML event handlers or script tags in attribute values
- Review the plugin version in wp-content/plugins/content-protector/ and flag installations at or below 4.2.24
- Inspect rendered page HTML for inline scripts not present in the underlying theme or expected plugins
Monitoring Recommendations
- Monitor changes to posts and pages authored by non-administrator roles, particularly when shortcodes are added or modified
- Alert on browser Content Security Policy violations originating from WordPress page paths
- Track plugin file integrity and version updates across managed WordPress sites
How to Mitigate CVE-2025-14865
Immediate Actions Required
- Update the Passster plugin to the latest version released after 4.2.24 that fully addresses the shortcode sanitization issue
- Audit all existing pages and posts for malicious payloads embedded in content_protector shortcode attributes
- Restrict Contributor and Author role assignments to trusted users only until patching is complete
Patch Information
A partial fix was introduced in version 4.2.21, tracked in WordPress Changeset Update #3422595. Additional hardening landed in WordPress Changeset Update #3439532. Site operators must upgrade to a version newer than 4.2.24 to eliminate the remaining attack paths.
Workarounds
- Deactivate the Passster plugin until a fully patched version is installed if contributor accounts cannot be trusted
- Remove the unfiltered_html capability is not granted to Contributor and Author roles by default — confirm no custom role plugin has elevated these permissions
- Apply a Web Application Firewall rule that blocks shortcode attributes containing HTML event handlers or <script> tags submitted by non-administrator users
# Check installed Passster plugin version on a WordPress host
wp plugin get content-protector --field=version
# Force update to the latest available release
wp plugin update content-protector
# Search post content for suspicious shortcode usage
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%content_protector%' AND (post_content LIKE '%<script%' OR post_content LIKE '%onerror=%' OR post_content LIKE '%javascript:%');"
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

