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-87111 Overview
CVE-2026-87111 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the User Registration PRO WordPress plugin. The flaw affects all premium versions up to and including 6.2.9. The free WordPress.org distribution is not affected.
Unauthenticated attackers can inject arbitrary web scripts through the HTTP Referer header processed by a vulnerable AJAX endpoint. The required nonce is localized into every front-end page for anonymous visitors, giving attackers everything needed to call the endpoint without authentication. Injected scripts execute whenever a user visits an affected page.
Critical Impact
Unauthenticated attackers can persist JavaScript payloads that execute in administrator browsers, enabling session theft, account takeover, and arbitrary actions in the WordPress admin context.
Affected Products
- User Registration PRO – Custom Registration Form, Login Form, and User Profile WordPress Plugin (premium build)
- All versions through 6.2.9
- Free WordPress.org distribution is not affected
Discovery Timeline
- 2026-10-16 - CVE-2026-87111 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-87111
Vulnerability Analysis
The plugin processes the HTTP Referer header value sent to a front-end AJAX endpoint without adequate input sanitization or output escaping. The server stores the attacker-controlled value and later renders it in page contexts where other users, including administrators, view the content. When the stored payload reaches the browser, it executes as script in the WordPress origin.
The exploitation precondition typically expected for CSRF-protected AJAX endpoints is absent here. The nonce guarding the vulnerable action is emitted into the page source for every anonymous visitor via wp_localize_script. Any unauthenticated client can parse the nonce from the HTML, construct an AJAX request with a crafted Referer header, and persist a payload.
Root Cause
The root cause is missing sanitization of a header value treated as trusted input, combined with missing contextual output escaping during rendering. Headers under client control, including Referer, must be treated as untrusted and encoded for the output sink, whether HTML body, attribute, or JavaScript context.
Attack Vector
The attack is remote, network-based, and requires no authentication or user interaction to plant the payload. An attacker fetches any front-end page to extract the localized nonce, then issues an HTTP POST to the vulnerable AJAX action with a malicious Referer header containing script content. The payload executes when a victim loads the affected page.
See the Wordfence Vulnerability Report ID 493ac933 for technical details.
Detection Methods for CVE-2026-87111
Indicators of Compromise
- HTTP requests to the plugin's admin-ajax.php action containing <script>, onerror=, or javascript: substrings in the Referer header.
- Unusual outbound requests from administrator browsers to attacker-controlled domains shortly after visiting plugin-rendered pages.
- New or modified WordPress administrator accounts without a corresponding audit trail.
- Unexpected plugin or theme installations following administrator sessions.
Detection Strategies
- Inspect web server access logs for POSTs to WordPress AJAX endpoints that carry script-like content in the Referer header.
- Deploy Web Application Firewall (WAF) rules that reject requests containing HTML or JavaScript syntax in header fields.
- Review stored plugin data for records containing <script, onload=, onerror=, or encoded script equivalents.
Monitoring Recommendations
- Alert on anomalous Referer header patterns targeting WordPress AJAX actions associated with the User Registration PRO plugin.
- Monitor WordPress audit logs for privilege changes, user creations, and plugin modifications.
- Track browser-based beaconing from admin sessions to uncategorized or newly registered domains.
How to Mitigate CVE-2026-87111
Immediate Actions Required
- Update User Registration PRO to the patched release noted in the WP User Registration Changelog.
- Audit all WordPress administrator and editor accounts for unauthorized changes.
- Rotate credentials and invalidate active sessions for privileged users.
- Review stored plugin data and purge entries containing injected script content.
Patch Information
Upgrade to a version later than 6.2.9 of the premium User Registration PRO plugin. Consult the WP User Registration Changelog and the Wordfence Vulnerability Report ID 493ac933 for fix details.
Workarounds
- Place a WAF rule in front of WordPress that blocks requests with HTML or script content in the Referer header.
- Restrict access to the vulnerable AJAX action at the network edge until the patch is applied.
- Enforce a strict Content Security Policy (CSP) that disallows inline scripts to limit payload execution.
- Temporarily deactivate the User Registration PRO plugin on sites that cannot update immediately.
# Example ModSecurity rule to block script content in the Referer header
SecRule REQUEST_HEADERS:Referer "@rx (?i)(<script|onerror=|onload=|javascript:)" \
"id:1008711,phase:1,deny,status:403,log,msg:'CVE-2026-87111: XSS in Referer header'"
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

