CVE-2026-136522: CubeWP Forms before 1.1.13 Unauthenticated Stored XSS via submit REST Route
CubeWP Forms before 1.1.13 contains an unauthenticated stored cross-site scripting vulnerability that allows attackers to inject malicious JavaScript by submitting unregistered field names through the public REST route cubewp-custom-form/v1/submit/, which bypasses its own nonce check and saves unsanitized values due to a missing default case in the sanitizer, later rendered unescaped on the admin Leads detail page. Attackers can send a single crafted GET request containing a script payload in a custom form field to execute arbitrary JavaScript in an administrator's wp-admin session when the lead is viewed, enabling full site takeover such as creating a new administrator account.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.13
Event History
Frequently Asked Questions
Who can submit a malicious payload?
Any remote attacker can use the public submission REST route without authentication. The route’s nonce check can be bypassed using unregistered field names.
What is required for the payload to execute?
The attacker’s submitted value is stored as a lead, and an administrator must view that lead on the wp-admin Leads detail page. The JavaScript then runs in that administrator’s authenticated session.
How can administrators check for possible exploitation?
Review stored leads, especially values submitted through custom or unregistered field names, before opening their detail pages in wp-admin. Malicious values may contain script payloads that are rendered without escaping.
Which releases are affected?
CubeWP Forms versions before 1.1.13 are affected. The issue is addressed in version 1.1.13 or later.