A high-severity vulnerability (CVSS 9.6) has been disclosed in CubeWP Forms, a WordPress plugin for custom form handling. Versions before 1.1.13 are affected by an unauthenticated stored cross-site scripting (XSS) flaw that allows attackers to execute arbitrary JavaScript in an administrator’s session—without needing credentials. This makes it possible for an attacker to take over the entire WordPress site by, for example, creating a new admin account.
The exploit is simple: an attacker submits a crafted GET request to the public REST route cubewp-custom-form/v1/submit/, including an unregistered field name with a malicious JavaScript payload. Because of a missing default case in the plugin’s sanitizer, the value is saved unsanitized. The plugin’s nonce check is also bypassed for these fields. When an admin later views the lead details in the wp-admin dashboard, the payload runs in their browser context.
How the attack works
- The attacker crafts a GET request to the REST endpoint with a custom field containing malicious JavaScript.
- CubeWP Forms fails to sanitise the unregistered field, storing it directly.
- No authentication or valid nonce is required to submit the payload.
- When an admin views the lead in wp-admin, the script executes, letting the attacker perform admin actions as the logged-in user.
What to upgrade to
The vulnerability is fixed in CubeWP Forms 1.1.13. The advisory does not specify the exact patch, but any version from 1.1.13 onwards is safe from this issue. Earlier versions are exploitable.
What to do now
- If you run CubeWP Forms, upgrade to at least 1.1.13 immediately.
- Review admin activity for suspicious account creation or settings changes.




