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

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-2707
CVSS 6.4 (Medium)
Publicly Published March 10, 2026
Last Updated March 11, 2026
Researcher Muhammad Sharief

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for weForms – Easy Drag & Drop Contact Form Builder For WordPress

Software Type Plugin
Software Slug weforms (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.6.28, or a newer patched version
Affected Version
  • <= 1.6.27
Patched Version
  • 1.6.28

Recent vulnerabilities in weForms – Easy Drag & Drop Contact Form Builder For WordPress

# Title CVE ID CVSS Researchers Date
1 weForms – Easy Drag & Drop Contact Form Builder For WordPress <= 1.6.26 - Unauthenticated PHP Object Injection CVE-2026-32484 8.1 daroo March 23, 2026
2 weForms <= 1.6.25 - Missing Authorization CVE-2025-69028 5.3 Doan Dinh Van (d52v) December 29, 2025
3 Various Plugins <= Various Version - Use of Polyfill.io 5.3 June 25, 2024
4 weForms <= 1.6.20 - Missing Authorization CVE-2024-30512 5.3 Kyle Sanchez March 28, 2024
5 weForms <= 1.6.21 - Unauthenticated Stored Cross-Site Scripting via Referer CVE-2024-0386 7.2 drop March 12, 2024
6 weForms <= 1.6.18 - Missing Authorization via export_form_entries CVE-2023-51524 6.5 emad December 27, 2023
7 weForms – Easy Drag & Drop Contact Form Builder For WordPress <= 1.6.17 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2023-50896 4.4 emad December 26, 2023
8 weForms <= 1.6.13 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2022-2395 5.5 Tri Wanda Septian July 12, 2022
9 WeForms <= 1.4.7 - CSV injection via form entry CVE-2020-22276 8.6 Mohamad Pishdar August 13, 2020

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation