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-2026-19804 Overview
CVE-2026-19804 is a Remote Code Execution (RCE) vulnerability in the s2Member WordPress plugin affecting all versions through 260814. The flaw stems from insufficient sanitization of the first_name parameter inside the Signup Tracking Codes template, which is passed to PHP's eval(). Combined with disclosure of the site-global proxy verification key through PayPal Checkout AJAX responses, unauthenticated attackers can bypass PayPal postback verification and inject arbitrary PHP code. Successful exploitation requires the administrator to have configured a Signup Tracking Codes template containing the %%first_name%% placeholder, a documented and GUI-supported feature.
Critical Impact
Unauthenticated attackers can execute arbitrary PHP code on vulnerable WordPress sites running s2Member, leading to full server compromise.
Affected Products
- s2Member WordPress plugin — all versions up to and including 260814
- WordPress sites with Signup Tracking Codes template containing the %%first_name%% placeholder
- Sites exposing the proxy verification key via PayPal Checkout AJAX responses
Discovery Timeline
- 2026-09-25 - CVE-2026-19804 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-19804
Vulnerability Analysis
The vulnerability is a code injection flaw [CWE-94] in the s2Member plugin's Signup Tracking Codes feature. When a user completes a PayPal signup, the plugin substitutes placeholders such as %%first_name%% into an administrator-defined template. That template is then passed to PHP's eval() for execution. The sanitization function esc_refs() applied to the first_name parameter only strips regular expression backreferences. It does not strip PHP open or close tags, so attacker-controlled PHP code reaches the eval() call.
A second weakness compounds the issue. The site-global proxy verification key is returned in plaintext inside the JSON response of any PayPal Checkout AJAX request. Any unauthenticated visitor can harvest this key and forge a valid PayPal postback, which drives the signup processing pipeline that evaluates the tracking template.
Root Cause
The root cause is unsafe use of eval() on a template built from untrusted input. The esc_refs() helper performs partial sanitization aimed at regex metacharacters, not PHP syntax. The design assumes postback requests originate from PayPal, but the shared verification key is exposed to any client, invalidating that trust boundary.
Attack Vector
An unauthenticated attacker first issues a PayPal Checkout AJAX request to the target site and extracts the proxy verification key from the JSON response. The attacker then submits a forged PayPal postback that includes a crafted first_name value containing raw PHP tags. The plugin substitutes the attacker's payload into the Signup Tracking Codes template and executes it with eval(), yielding remote code execution under the web server account.
See the WordPress s2Member Tracking Codes Code and WordPress s2Member PayPal Utilities Function for the vulnerable code paths.
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-19804
Indicators of Compromise
- POST requests to PayPal postback endpoints containing PHP tags (<?php, <?=, ?>) in the first_name field
- Unexpected outbound connections or web shells written under wp-content/ following PayPal postback traffic
- Anomalous child processes spawned by the PHP-FPM or Apache worker process after s2Member signup events
- GET or POST requests to PayPal Checkout AJAX endpoints from clients that never complete a checkout, consistent with proxy key harvesting
Detection Strategies
- Inspect web server access and application logs for PayPal postback requests with non-alphabetic characters in the first_name parameter
- Monitor for new or modified PHP files inside the WordPress document root after s2Member transaction activity
- Alert on the WordPress PHP process executing shell utilities such as sh, bash, curl, or wget
Monitoring Recommendations
- Enable WordPress audit logging for plugin configuration changes to the Signup Tracking Codes template
- Forward web server, PHP error, and host process telemetry to a centralized analytics platform for correlation
- Track egress traffic from WordPress hosts to detect post-exploitation command-and-control activity
How to Mitigate CVE-2026-19804
Immediate Actions Required
- Update the s2Member plugin to the patched release referenced in WordPress s2Member Changeset 3671073
- Remove the %%first_name%% placeholder, and any other user-controlled placeholders, from the Signup Tracking Codes template until the plugin is patched
- Rotate the s2Member proxy verification key and any other secrets that may have been exposed through PayPal Checkout AJAX responses
- Review the WordPress file system for unauthorized PHP files, scheduled tasks, and administrator accounts
Patch Information
The vendor fix is delivered in s2Member changeset 3671073. The patch is documented in the Wordfence Vulnerability Report. Administrators should upgrade to a version newer than 260814 and verify the Signup Tracking Codes template behaves as expected after the update.
Workarounds
- Disable the Signup Tracking Codes feature entirely until the plugin is upgraded
- Deploy a Web Application Firewall rule that blocks requests containing <? or ?> in PayPal postback parameters
- Restrict access to PayPal postback and checkout endpoints at the network edge where business requirements allow
# Example WAF rule (ModSecurity) blocking PHP tags in PayPal postback parameters
SecRule ARGS_NAMES "@rx ^(first_name|last_name|full_name)$" \
"chain,id:1026198040,phase:2,deny,status:403,msg:'CVE-2026-19804 s2Member RCE attempt'"
SecRule ARGS "@rx (<\?php|<\?=|\?>)" "t:none,t:lowercase"
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

