CVE-2025-13642
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-13642 is an arbitrary shortcode execution vulnerability in the ProfilePress (Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content) plugin for WordPress. It affects all versions up to and including 4.16.7, and was published on December 9, 2025. The flaw allows authenticated attackers with Subscriber-level access or above to execute arbitrary shortcodes via the pp_preview_form endpoint. It carries a CVSS v3.1 base score of 5.4 (Medium) (Red Hat CVE, Wordfence).

Technical details

The root cause is insufficient input sanitization on the type parameter within the plugin's form preview functionality (CWE-94: Improper Control of Generation of Code). Specifically, the FormPreviewHandler.php class fails to properly validate or sanitize user-supplied input before passing it to WordPress's shortcode execution engine, enabling injection of arbitrary shortcode strings. An attacker with at least Subscriber-level authentication can send a crafted request to the pp_preview_form endpoint with a malicious type parameter value to trigger shortcode execution. The vulnerable code paths are documented in the plugin's source at FormPreviewHandler.php lines 15 and 71 (Wordfence, WordPress Trac).

Impact

Successful exploitation allows authenticated attackers to execute arbitrary WordPress shortcodes in the context of the server, resulting in low-level confidentiality and integrity impacts. Attackers could leverage shortcodes to leak sensitive site data, modify displayed content, or invoke plugin/theme functionality not intended for their privilege level. Availability is not directly impacted, but chained exploitation with other shortcode-based vulnerabilities could extend the attack surface (Red Hat CVE, Wordfence).

Exploitability

No public proof-of-concept exploit code or evidence of active in-the-wild exploitation has been reported as of the time of disclosure. The EPSS score is approximately 0.042%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires at minimum a Subscriber-level WordPress account, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the ProfilePress plugin at version 4.16.7 or earlier using tools like WPScan or by inspecting plugin metadata in publicly accessible readme files.
  2. Obtain Subscriber Access: Register for a free account on the target WordPress site (if open registration is enabled) or use compromised Subscriber-level credentials.
  3. Craft Malicious Request: Authenticate to the WordPress site and send a POST or GET request to the pp_preview_form endpoint, injecting an arbitrary shortcode into the type parameter (e.g., type=[some_shortcode]).
  4. Trigger Shortcode Execution: The unsanitized type parameter is passed to WordPress's shortcode processor in FormPreviewHandler.php, causing the injected shortcode to execute server-side.
  5. Achieve Objective: Depending on available shortcodes, extract sensitive information (e.g., user data, configuration details) or modify site content as rendered by the shortcode output (Wordfence, WordPress Trac).

Indicators of compromise

  • Network: Unusual authenticated HTTP requests to the pp_preview_form endpoint with unexpected or encoded values in the type parameter from low-privilege user accounts.
  • Logs: WordPress access logs showing repeated requests to the form preview endpoint (/wp-admin/admin-ajax.php or equivalent) with type parameter values containing shortcode syntax (e.g., [shortcode_name]).
  • Logs: WordPress debug logs or error logs showing unexpected shortcode execution or output from the FormPreviewHandler class.
  • File System: No direct file system artifacts expected, but monitor for any new files created as a side effect of executed shortcodes (e.g., if a shortcode triggers file writes).

Mitigation and workarounds

Users should update the ProfilePress plugin to version 4.16.8 or later, which addresses the insufficient input sanitization on the type parameter. The fix is documented in the plugin changeset at WordPress.org. If immediate update is not possible, site administrators should restrict user registration or disable Subscriber-level access to limit the attack surface. Monitoring the pp_preview_form endpoint for anomalous requests is also recommended as a temporary measure (WordPress Trac Changeset, Wordfence).

Community reactions

Wordfence, which discovered and reported the vulnerability, published a threat intelligence entry covering the technical details and remediation guidance. Sucuri included CVE-2025-13642 in their December 2025 vulnerability patch roundup, noting it as part of a broader set of WordPress plugin issues addressed that month (Sucuri Blog, Wordfence).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-13784CRITICAL9.8
  • arforms-form-builder
NoYesAug 16, 2026
CVE-2026-17087HIGH7.5
  • wp-travel-engine
NoYesAug 16, 2026
CVE-2026-2497HIGH7.2
  • gallery-plugin
NoYesAug 16, 2026
CVE-2026-17608MEDIUM6.5
  • wp-compress-image-optimizer
NoYesAug 16, 2026
CVE-2026-2357MEDIUM6.4
  • bold-page-builder
NoYesAug 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management