# Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction <= 3.1.4 - Unauthenticated Arbitrary Shortcode Execution via Merge Tag Values

- **ID:** WPSEC-2026-3352
- **Plugin:** Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction (`paid-member-subscriptions`), https://wordpress.org/plugins/paid-member-subscriptions/
- **Affected versions:** all versions before 3.1.5
- **Fixed in:** 3.1.5 (Update to 3.1.5 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/paid-member-subscriptions
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3352/

## Description

The Paid Membership Subscriptions plugin for WordPress is vulnerable to Arbitrary Shortcode Execution via merge tag values in all versions up to, and including, 3.1.4. This is due to member-controlled values, such as the display name (which WordPress builds from the first and last name entered on the registration form), being placed unchanged into email content and restriction messages that are then passed through do_shortcode(). This makes it possible for unauthenticated attackers to execute arbitrary shortcodes, for example by registering with a shortcode as their first name, and receive the output in the emails the plugin sends.

## References

- https://wpsec.com/vuln/WPSEC-2026-3352/
- https://plugins.svn.wordpress.org/paid-member-subscriptions/tags/3.1.5/
- https://wordpress.org/plugins/paid-member-subscriptions/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3352/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
