Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Contributor account required (PR:L); a victim must view the injected page (UI:R); payload executes in visiting user's browser scope (S:C), with no availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
Lifecycle Timeline
2DescriptionCVE.org
The PPWP - Password Protect WordPress | #1 Most-Reviewed Password Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'ppwp' shortcode in all versions up to, and including, 1.9.21 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AnalysisAI
Stored XSS in the PPWP - Password Protect Pages WordPress plugin (all versions up to and including 1.9.21) allows authenticated contributors to inject persistent malicious scripts via unsanitized attributes in the 'ppwp' shortcode. Any user or administrator who subsequently loads an affected page will execute the injected script in their browser, enabling session hijacking, credential theft, or escalated site compromise. No public exploit code or CISA KEV listing is identified at time of analysis; however, the CVSS Scope:Changed rating reflects meaningful cross-origin impact on visiting users beyond the injecting contributor.
Technical ContextAI
The vulnerability originates in the shortcode handler at includes/services/class-ppw-shortcode.php (line 544, referenced via the plugins.trac.wordpress.org source browser for the 1.9.12 tag) where user-supplied shortcode attributes are written to HTML output without sanitization or encoding. CWE-79 (Improper Neutralization of Input During Web Page Generation) describes this root cause class: attacker-controlled string data flows into rendered HTML, enabling script injection. The CPE identifier cpe:2.3:a:buildwps:ppwp_-_password_protect_pages:*:*:*:*:*:*:*:* confirms the affected component is the buildwps-authored plugin distributed under the WordPress.org slug 'password-protect-page'. The CVSS S:C (Scope Changed) metric reflects that the injected payload executes in the browser security context of visiting users - a distinct principal from the contributor who inserted the shortcode.
RemediationAI
Update the PPWP - Password Protect Pages plugin to a version beyond 1.9.21 as soon as a patched release is available in the WordPress Plugin Directory. Two upstream commits have been applied to the plugin repository (changesets 3637624 and 3642939 at plugins.trac.wordpress.org), confirming that fixes were submitted upstream; however, the exact released version number incorporating these patches is not confirmed in available data and should be verified directly in the WordPress Plugin Directory or via the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/99772f4b-4152-42dc-8bde-697bba3d031f. As an interim workaround on sites where immediate update is not feasible, restrict contributor-level role assignment to fully trusted users only, or remove the capability to publish or edit posts from contributors - note that this may break existing editorial workflows. Disabling the 'ppwp' shortcode output entirely via a capability-restriction plugin is an alternative but will break password-protected pages that rely on it. Additionally, deploying a WAF rule (Wordfence provides one for premium subscribers) targeting malicious shortcode attribute injection can reduce exposure during the patching window.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
Remote code execution in the WP Query Console WordPress plugin (versions up to and including 1.0) by Ajit Bohra allows u
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-210770
GHSA-gr4q-7mpw-mwqc