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-12524 Overview
CVE-2025-12524 affects the Post Type Switcher plugin for WordPress in versions up to and including 4.0.0. The vulnerability stems from missing validation on a user-controlled key, resulting in an Insecure Direct Object Reference flaw classified as [CWE-639]. Authenticated attackers with Author-level access or above can modify the post type of arbitrary posts and pages they do not own, including content created by administrators. Exploitation can lead to site disruption, broken navigation, and search engine optimization (SEO) impact.
Critical Impact
Author-level users can alter the post type of any post or page on the site, including administrator-authored content, enabling content integrity attacks against the WordPress site.
Affected Products
- Post Type Switcher plugin for WordPress — versions up to and including 4.0.0
- WordPress sites allowing Author-level or higher user registration
- Multi-author WordPress deployments using the plugin for content type management
Discovery Timeline
- 2025-11-18 - CVE-2025-12524 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2025-12524
Vulnerability Analysis
The Post Type Switcher plugin allows site administrators to change the post type of existing posts and pages through the WordPress admin interface. The vulnerable code paths reside in post-type-switcher.php at lines 469 and 486 of the 4.0.0 release.
The plugin accepts a post identifier from the request and performs the post type change without verifying that the requesting user has permission to edit the specific target post. As a result, an authenticated user who legitimately holds Author-level privileges can submit a crafted request referencing a post ID belonging to another user, including an administrator, and change its post type.
Although confidentiality is not impacted, the integrity and availability of published content can be degraded. Changing a published page into an unregistered or hidden post type can remove it from navigation menus, archives, and sitemaps.
Root Cause
The root cause is a Broken Object Level Authorization pattern described by OWASP API Security Guide. The handler relies on the authenticated session's role check but fails to call a per-object capability check such as current_user_can( 'edit_post', $post_id ) against the supplied post identifier. The plugin treats the submitted key as trusted, enabling horizontal and vertical object access violations.
Attack Vector
Exploitation requires an authenticated account with Author-level privileges or higher and network access to the WordPress site. The attacker submits a request to the plugin's post type switching endpoint, substituting the ID of a target post owned by another user. The server processes the request and updates the post type field in the wp_posts table without validating ownership. No user interaction from the victim is required.
See the WordPress Post Type Switcher Code Line 469 and Line 486 for the vulnerable handlers, and the WordPress Post Type Switcher Changeset for the applied fix.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2025-12524
Indicators of Compromise
- Unexpected changes to the post_type column in the wp_posts table on content not owned by the modifying user.
- Administrator-authored pages suddenly missing from navigation, archives, or XML sitemaps.
- WordPress audit log entries showing Author-level users triggering post type switch actions on content they do not own.
- Spikes in HTTP POST requests to admin-ajax.php or admin endpoints associated with the Post Type Switcher plugin.
Detection Strategies
- Query the wp_posts table for recent post_modified timestamps where post_author does not match the user who performed the most recent edit recorded in audit logs.
- Correlate web server access logs with WordPress user activity to flag requests from Author-level accounts targeting post IDs they do not own.
- Deploy a web application firewall rule that inspects Post Type Switcher requests and validates the submitted post ID against the authenticated user context.
Monitoring Recommendations
- Enable a WordPress activity logging plugin to record all post type changes, with user, source IP, and target post ID.
- Monitor sitemap and navigation generation output for sudden removals of indexed URLs that could indicate silent post type manipulation.
- Alert on any Author-level account issuing administrative-looking actions outside the user's own content scope.
How to Mitigate CVE-2025-12524
Immediate Actions Required
- Update the Post Type Switcher plugin to the version released after 4.0.0 that includes the fix referenced in the plugin changeset.
- Audit all Author-level and above accounts, remove unused accounts, and reset credentials for any accounts showing anomalous activity.
- Review the wp_posts table for unexpected post_type values and restore affected content from backups where necessary.
Patch Information
The plugin maintainers resolved the issue in the release following version 4.0.0. The upstream fix is published in the WordPress Post Type Switcher Changeset. Additional advisory details are available in the Wordfence Vulnerability Report.
Workarounds
- Deactivate the Post Type Switcher plugin until the patched version is installed.
- Restrict user registration and demote any non-essential Author-level or higher accounts to Contributor or Subscriber roles.
- Deploy a WordPress capability enforcement plugin or custom map_meta_cap filter that blocks post type changes on posts the current user cannot edit.
# Configuration example: update the plugin via WP-CLI
wp plugin update post-type-switcher
wp plugin status post-type-switcher
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

