CVE-2026-131806 in CubeWP Forms Plugin
Summary
by MITRE • 11/26/2026
The CubeWP Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'cwp_custom_form[form_data_id]' parameter in all versions up to, and including, 1.1.13 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The nonce required by the submission handler is publicly emitted in the inline script data of any page rendering the cwpCustomForm shortcode, making it trivially obtainable by unauthenticated visitors and rendering the nonce check ineffective as an authentication barrier.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The CubeWP Forms plugin for WordPress contains a critical security vulnerability affecting all versions up to and including 1.1.13. This flaw is classified as a Stored Cross-Site Scripting (XSS) issue, which represents one of the most prevalent and dangerous web application vulnerabilities according to industry standards such as CWE-79. The root cause lies in insufficient input sanitization and output escaping within the cwp_custom_form[form_data_id] parameter. When an attacker submits a form containing malicious script payloads, these scripts are stored on the server without proper validation or encoding. Consequently, when any user subsequently accesses a page that renders this compromised data, the injected JavaScript executes in their browser context. This execution occurs within the security scope of the vulnerable website, allowing attackers to bypass same-origin policies and interact with the application as if they were legitimate users.
The severity of this vulnerability is significantly amplified by the ineffective implementation of anti-CSRF protections. Typically, WordPress plugins utilize nonces (number used once) to prevent cross-site request forgery attacks by ensuring that form submissions originate from trusted sources within the site itself. However, in CubeWP Forms versions up to 1.1.13, the nonce required for submission is publicly emitted in the inline script data of any page rendering the cwpCustomForm shortcode. This design flaw means that unauthenticated visitors can trivially obtain valid nonces by simply viewing the source code or network traffic of a public page containing a form. As a result, the nonce check fails to serve as an effective authentication barrier, allowing attackers from external domains to forge requests and inject malicious content without needing any prior credentials or user interaction beyond initial access to a page with a CubeWP form.
The operational impact of this vulnerability is severe for both website administrators and end-users. For site owners, the presence of stored XSS can lead to defacement, data theft, or the installation of further malware such as keyloggers that capture sensitive information entered by legitimate users. It also undermines trust in the platform's security posture. For end-users, executing arbitrary web scripts means their session cookies, authentication tokens, and personal data are exposed to malicious actors who can hijack user sessions or perform actions on behalf of the victim without consent. This aligns with several techniques described in the MITRE ATT&CK framework for adversary emulation, specifically those related to client-side injection and credential harvesting via browser-based attacks.
To mitigate this vulnerability, immediate action is required from administrators using CubeWP Forms. The primary remediation step is to upgrade the plugin to a version later than 1.1.13 where these issues have been addressed by the developers through proper input sanitization and secure output escaping mechanisms. If upgrading is not immediately possible, temporary mitigations include disabling public access to forms that utilize the affected shortcode or implementing Web Application Firewall rules to detect and block requests containing common XSS payloads in form data fields. Additionally, reviewing server-side logs for unusual submission patterns can help identify ongoing exploitation attempts. Long-term security hygiene should involve regular audits of third-party plugins to ensure they adhere to secure coding standards such as OWASP Top Ten guidelines, particularly regarding input validation and output encoding practices.