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-2024-12634 Overview
CVE-2024-12634 is a Cross-Site Request Forgery [CWE-352] vulnerability in the Related Posts, Inline Related Posts, Contextual Related Posts, Related Content By PickPlugins plugin for WordPress. All versions through 2.0.59 are affected. The flaw stems from missing nonce validation on a settings function in includes/menu/settings.php. Unauthenticated attackers can inject malicious web scripts by tricking a site administrator into clicking a crafted link. Successful exploitation modifies plugin settings and introduces stored script content that executes in the administrator's browser context.
Critical Impact
Attackers can hijack administrator sessions to inject persistent scripts into WordPress sites running vulnerable versions of the plugin.
Affected Products
- WordPress plugin: Related Posts, Inline Related Posts, Contextual Related Posts, Related Content By PickPlugins
- Versions: all releases up to and including 2.0.59
- Patched in: version 2.0.60 (per WordPress plugin repository changeset 3251482)
Discovery Timeline
- 2025-03-07 - CVE-2024-12634 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12634
Vulnerability Analysis
The vulnerability resides in the plugin's settings handler at includes/menu/settings.php around line 129. The function processes administrative requests without verifying a WordPress nonce token. WordPress nonces exist specifically to confirm that a state-changing request originated from an authenticated user action rather than a forged cross-origin request. Without this check, any browser session carrying a valid admin cookie will accept and process requests delivered from attacker-controlled pages.
Because the vulnerable handler accepts user-supplied values that are later rendered in the WordPress admin interface, the forged request can store attacker-controlled script content. This elevates the issue from pure configuration tampering to script injection within the administrator's authenticated context.
Root Cause
The root cause is the absence of wp_verify_nonce() or check_admin_referer() validation on a privileged settings function. WordPress plugin development guidance requires nonce validation on any handler that performs state-changing operations. The missing check in versions through 2.0.59 allows cross-origin POST or GET requests to invoke the handler using the victim administrator's session.
Attack Vector
Exploitation requires an attacker to lure an authenticated WordPress administrator to a malicious page or link. The attacker-hosted page issues a crafted request to the vulnerable settings endpoint. The browser automatically attaches the administrator's session cookies, satisfying the authorization check that the plugin does enforce. The injected payload executes in the admin dashboard, enabling actions such as account creation, additional plugin modification, or theft of session artifacts.
No verified public proof-of-concept code is available. Technical references for the vulnerable code path are documented in the WordPress plugin settings source and the Wordfence vulnerability analysis.
Detection Methods for CVE-2024-12634
Indicators of Compromise
- Unexpected changes to Related Posts plugin settings in the WordPress options table (wp_options).
- New or modified administrator accounts created shortly after an admin visited an external link.
- Script tags or JavaScript payloads stored in plugin configuration fields.
- Outbound requests from the admin browser to unfamiliar domains following dashboard access.
Detection Strategies
- Audit WordPress access logs for POST requests to wp-admin/admin.php with the plugin's settings page parameters and a missing or absent _wpnonce value.
- Compare current plugin settings against a known-good baseline to identify tampering.
- Review the Referer header on administrative requests to flag off-site origins.
Monitoring Recommendations
- Enable WordPress audit logging to capture option changes and user role modifications.
- Monitor web server logs for admin-area requests originating from external referrers.
- Alert on creation of new administrator accounts outside of change windows.
How to Mitigate CVE-2024-12634
Immediate Actions Required
- Update the Related Posts by PickPlugins plugin to version 2.0.60 or later immediately.
- Review all administrator accounts and remove any that were not provisioned by authorized staff.
- Rotate administrator passwords and invalidate active sessions after patching.
- Inspect plugin settings for stored script payloads or unexpected configuration changes.
Patch Information
The vendor addressed the issue by adding nonce validation to the affected settings function. The fix is published in WordPress plugin changeset 3251482. Download the current release from the WordPress plugin repository.
Workarounds
- Deactivate the Related Posts by PickPlugins plugin until the update to 2.0.60 can be applied.
- Restrict access to the WordPress admin interface by IP allowlist at the web server or WAF layer.
- Require administrators to use separate browser profiles for WordPress administration to limit cross-site cookie exposure.
- Deploy a web application firewall rule that blocks admin-area POST requests lacking a valid _wpnonce parameter.
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

