Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.4
weForms plugin for WordPress: Malicious scripts can run in admin form view
CVE-2026-2707
Summary
The weForms plugin for WordPress has a security flaw that allows attackers with Subscriber-level access and above to inject malicious scripts into form entries. If an administrator views the form entries page, these scripts can run, potentially causing harm. To fix this, update the weForms plugin to the latest version (1.6.28) or higher.
Original title
The weForms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the REST API entry submission endpoint in all versions up to, and including, 1.6.27. This is due to inconsistent in...
Original description
The weForms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the REST API entry submission endpoint in all versions up to, and including, 1.6.27. This is due to inconsistent input sanitization between the frontend AJAX handler and the REST API endpoint. When entries are submitted via the REST API (`/wp-json/weforms/v1/forms/{id}/entries/`), the `prepare_entry()` method in `class-abstract-fields.php` receives the WP_REST_Request object as `$args`, bypassing the `weforms_clean()` fallback that sanitizes `$_POST` data for frontend submissions. The base field handler only applies `trim()` to the value. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts into form entry hidden field values via the REST API that execute when an administrator views the form entries page, where data is rendered using a Vue.js `v-html` directive without escaping.
nvd CVSS3.1
6.4
Vulnerability type
CWE-79
Cross-site Scripting (XSS)
- https://github.com/BoldGrid/weforms/pull/263
- https://plugins.trac.wordpress.org/browser/weforms/tags/1.6.27/assets/js-templat...
- https://plugins.trac.wordpress.org/browser/weforms/tags/1.6.27/includes/fields/c...
- https://plugins.trac.wordpress.org/browser/weforms/trunk/assets/js-templates/spa...
- https://plugins.trac.wordpress.org/browser/weforms/trunk/includes/fields/class-a...
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new...
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e97854ca-b24f-4893-862...
Published: 11 Mar 2026 · Updated: 13 Mar 2026 · First seen: 11 Mar 2026