CVE-2026-2707 weForms <= 1.6.27 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Hidden Field Value via REST API

Medium 6.4 Published Updated

Authenticated attackers can inject scripts via REST API hidden fields that execute in admin browsers, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-2707?

CVE-2026-2707 is a medium-severity cross-site scripting vulnerability in boldgrid weForms – Easy Drag & Drop Contact Form Builder For WordPress, published on 11 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-2707?

How do I fix CVE-2026-2707?

No fix has been published for CVE-2026-2707 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-2707 being exploited?

There is no known exploitation of CVE-2026-2707 in the wild and no public exploit code.

Sources

Also known as GHSA-j4h3-864w-3w43.

Is CVE-2026-2707 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free