CVE-2026-92798
8.1HighPublished 17 Oct 2026 · NVD status: Received · AI triage by gemini-3.8-flash
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Impact
- High impact on confidentiality, integrity
- Weakness
- CWE-94
Impact
Unauthenticated remote attackers can execute arbitrary registered WordPress shortcodes by spoofing the HTTP Referer header. This affects any restricted page configured to use the {{referrer_url}} smart tag in its access-restriction message.
Root cause
The plugin passes the attacker-controlled HTTP Referer header through sanitize_text_field(), which fails to strip shortcode syntax before running do_shortcode() on restriction messages.
Affected systems
User Registration & Membership plugin for WordPress up to and including version 5.2.8
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Fix & remediation
Upgrade the User Registration plugin to a version newer than 5.2.8. As an interim mitigation, edit Content Restriction settings to remove the {{referrer_url}} smart tag from all restriction messages.
$ wp plugin update user-registrationAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
The User Registration & Membership plugin for WordPress is vulnerable to Arbitrary Shortcode Execution in versions up to, and including, 5.2.8 This is due to insufficient input sanitization in the 'referrer_url' branch of UR_Smart_Tags::process(), where the attacker-controlled HTTP_REFERER header is only passed through sanitize_text_field() — which does not strip WordPress shortcode delimiters — before being substituted into a Content Restriction message that is subsequently executed via apply_shortcodes()/do_shortcode(). This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes on any restricted page whose message uses the supported {{referrer_url}} smart tag.
References
- https://plugins.trac.wordpress.org/browser/user-registration/tags/5.2.8/includes/class-ur-smart-tags.php#L474
- https://plugins.trac.wordpress.org/browser/user-registration/tags/5.2.8/includes/class-ur-smart-tags.php#L475
- https://plugins.trac.wordpress.org/browser/user-registration/tags/5.2.8/modules/content-restriction/class-urcr-frontend.php#L1383
- https://plugins.trac.wordpress.org/browser/user-registration/tags/5.2.8/modules/content-restriction/functions-urcr-core.php#L693
- https://plugins.trac.wordpress.org/changeset/3741339/user-registration/trunk/includes/class-ur-smart-tags.php
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ec317df9-c7ef-49a3-9818-903dfe4bdd03?source=cve