CVE-2026-15222 Overview
CVE-2026-15222 affects the User Registration & Membership plugin for WordPress, which provides free and paid memberships, subscriptions, content restriction, user profiles, and custom registration and login builders. The plugin fails to validate a value before passing it to do_shortcode, enabling authenticated attackers to execute arbitrary shortcodes. All versions up to and including 5.2.8 are affected. The flaw is categorized under CWE-94: Improper Control of Generation of Code.
Critical Impact
Authenticated users with subscriber-level privileges or above can execute arbitrary shortcodes, potentially exposing restricted content, triggering unintended plugin actions, or facilitating further abuse of installed shortcode handlers.
Affected Products
- WordPress plugin: User Registration & Membership (slug user-registration)
- All plugin versions up to and including 5.2.8
- WordPress sites allowing subscriber-level registration where this plugin is active
Discovery Timeline
- 2026-10-16 - CVE-2026-15222 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-15222
Vulnerability Analysis
The vulnerability resides in the plugin's smart tags handling logic, implemented in includes/class-ur-smart-tags.php. The plugin exposes an action that accepts a user-controlled value and passes it to the WordPress do_shortcode() function without proper validation or sanitization. Because do_shortcode() parses and executes any registered shortcode within the provided string, attackers can supply shortcode syntax that the plugin will evaluate server-side.
Authenticated attackers with subscriber-level access or higher can trigger this action. The impact depends on which shortcodes are registered in the target WordPress environment. Shortcodes from other plugins or themes that perform privileged operations, disclose restricted content, or render arbitrary HTML can be invoked indirectly, broadening the blast radius beyond the vulnerable plugin itself.
Root Cause
The plugin invokes do_shortcode on data that originates from an authenticated request without first validating that the value matches an expected format or shortcode allowlist. This is a classic improper code generation issue tracked under CWE-94. The upstream fix is visible in the WordPress Plugin Change Log.
Attack Vector
Exploitation requires network access to the target WordPress site and an authenticated account with at least subscriber privileges. Because many sites using this plugin allow open user registration, acquiring a subscriber account is often trivial. The attacker submits a crafted request containing shortcode syntax to the vulnerable action, and the server renders the shortcode in a context the attacker controls.
See the Wordfence Vulnerability Report for additional technical context.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-15222
Indicators of Compromise
- Requests to WordPress endpoints handled by the User Registration plugin containing shortcode syntax such as [ and ] in parameter values submitted by low-privilege accounts
- Unexpected rendering of content from other plugins (contact forms, file managers, membership gates) in responses tied to subscriber sessions
- Newly registered subscriber accounts followed shortly by anomalous POST traffic to admin-ajax.php or plugin-specific endpoints
Detection Strategies
- Inventory WordPress sites running the user-registration plugin and flag any instance at version 5.2.8 or earlier
- Inspect web server and PHP application logs for request bodies containing shortcode brackets originating from authenticated low-privilege sessions
- Review audit logs for subscriber accounts invoking actions that normally require elevated roles
Monitoring Recommendations
- Enable a WordPress security or audit logging plugin to record shortcode-rendering actions and the user identity associated with them
- Alert on bulk subscriber registrations followed by POST activity to plugin endpoints within a short time window
- Monitor for outbound requests or file writes initiated by the PHP worker shortly after shortcode-bearing requests, which may indicate chained abuse of other plugins
How to Mitigate CVE-2026-15222
Immediate Actions Required
- Update the User Registration & Membership plugin to a version later than 5.2.8 that includes the fix from changeset 3741339
- Audit existing subscriber-level and higher accounts for signs of abuse and remove any suspicious registrations
- Review which third-party shortcodes are registered on the site and disable any that perform privileged operations if they are not required
Patch Information
The vendor addressed the issue in the plugin's class-ur-smart-tags.php component. The corrective change is published in the official WordPress Plugin Change Log. Site administrators should apply the update through the WordPress plugin manager or by replacing the plugin files with the fixed release.
Workarounds
- Disable open user registration temporarily if the plugin cannot be updated immediately
- Restrict access to the vulnerable plugin action at the web server or web application firewall layer by blocking requests containing shortcode brackets from non-administrative sessions
- Deactivate the User Registration & Membership plugin until the fixed version can be deployed if the site does not rely on it in production
# Example: list installed WordPress plugins and versions using WP-CLI
wp plugin list --fields=name,status,version | grep user-registration
# Update the plugin once a fixed version is published
wp plugin update user-registration
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

