CVE-2026-2707: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in boldgrid weForms – Easy Drag & Drop Contact Form Builder For WordPress
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.
AI Analysis
Technical Summary
The weForms plugin for WordPress suffers from a stored XSS vulnerability in its REST API entry submission endpoint. The root cause is inconsistent sanitization: frontend submissions sanitize input via the weforms_clean() function, but REST API submissions bypass this and only apply trim() to input values. This allows authenticated attackers with Subscriber-level privileges or higher to inject arbitrary JavaScript into hidden form fields. When an administrator views the entries page, the injected scripts execute because the data is rendered using Vue.js's v-html directive without escaping. This vulnerability affects all versions up to and including 1.6.27.
Potential Impact
An attacker with at least Subscriber-level access can inject malicious scripts into form entries via the REST API. These scripts execute in the context of an administrator's browser when viewing the form entries page, potentially leading to session hijacking, privilege escalation, or other malicious actions limited to the administrator's privileges. The vulnerability does not impact availability and requires authenticated access, but it compromises integrity and confidentiality to a limited extent.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict REST API access to trusted users only and avoid granting Subscriber-level or higher privileges to untrusted users. Administrators should be cautious when viewing form entries submitted via the REST API. Monitor official boldgrid advisories for updates and patches.
CVE-2026-2707: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in boldgrid weForms – Easy Drag & Drop Contact Form Builder For WordPress
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The weForms plugin for WordPress suffers from a stored XSS vulnerability in its REST API entry submission endpoint. The root cause is inconsistent sanitization: frontend submissions sanitize input via the weforms_clean() function, but REST API submissions bypass this and only apply trim() to input values. This allows authenticated attackers with Subscriber-level privileges or higher to inject arbitrary JavaScript into hidden form fields. When an administrator views the entries page, the injected scripts execute because the data is rendered using Vue.js's v-html directive without escaping. This vulnerability affects all versions up to and including 1.6.27.
Potential Impact
An attacker with at least Subscriber-level access can inject malicious scripts into form entries via the REST API. These scripts execute in the context of an administrator's browser when viewing the form entries page, potentially leading to session hijacking, privilege escalation, or other malicious actions limited to the administrator's privileges. The vulnerability does not impact availability and requires authenticated access, but it compromises integrity and confidentiality to a limited extent.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict REST API access to trusted users only and avoid granting Subscriber-level or higher privileges to untrusted users. Administrators should be cautious when viewing form entries submitted via the REST API. Monitor official boldgrid advisories for updates and patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-18T19:24:22.125Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69b0fdcf2f860ef9432e28e6
Added to database: 3/11/2026, 5:29:51 AM
Last enriched: 4/9/2026, 11:31:19 AM
Last updated: 4/23/2026, 8:26:20 PM
Views: 63
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.