The WordPress plugin WPForms has a security vulnerability up to and including version 2.0.4 that allows unauthenticated outsiders to write script code into payment entries. That is how Wordfence, a provider of security software for WordPress, describes it, rating the severity at 7.2 out of 10 points, i.e. as high.
The attack path leads through payment forms whose "Multiple Choice" field accepts a custom answer under "Other". A version with a fix has been available in the WordPress directory for the free edition since November 19.
How does the malicious code get into the backend?
An attacker fills out the public payment form and types crafted code into the text field under "Other", which WPForms only incompletely sanitizes when saving. If someone with higher privileges, such as an administrator, later opens the detail page of this payment in the backend, the browser executes the script as soon as the page loads. No click is required for this.
How an attack could unfold
According to Wordfence, the vulnerability affects WPForms up to and including version 2.0.4
- A stranger fills out the payment form
- The code under "Other" is saved
- An admin opens the payment in the backend
- The script is executed without a click
It was not listed in the catalog of actively exploited vulnerabilities of the US agency CISA on November 27
Sources: CVE.org, CISA
Experts call this type of attack persistent cross-site scripting, XSS for short, because the code remains in the database and is only executed when the entry is accessed. In the browser of a logged-in administrator, such a script can trigger actions with that person's privileges. Wordfence described the process in the entry CVE-2026-126342, under which identifier the vulnerability is recorded worldwide. The US agency CISA maintains a catalog of actively exploited vulnerabilities, in which the WPForms vulnerability was absent on November 27.
In the free edition of WPForms, the vulnerability has been closed since version 2.0.5.1 from November 19; the current version is 2.0.5.2 from November 24. The manufacturer's changelog lists a safer display of the selection values on the payment detail page as early as version 2.0.5 from November 17, though without a CVE number. According to the dates in the CVE entry, the manufacturer had been aware since November 10.
The CVE entry refers to the free version with the short name wpforms-lite. Whether the paid version WPForms Pro was also vulnerable is left open by Wordfence there. You should update it anyway. According to the renewal guide, an active license secures you access to important updates.
WordPress.org counts more than 5 million active installations for the free edition. Around 37 % of them were, according to the version statistics, still running a version before 2.0 on November 28, i.e. within the affected range.
What else changes with the update?
If you update from version 2.0.4 or an older one, you may notice a few changes in everyday use:
- You edit the appearance of your forms via a new button, called "Edit Theme" in the changelog, and the previous style settings in the Gutenberg block as well as in the Elementor widget are removed.
- Payments via PayPal Commerce that PayPal holds back appear as pending instead of declined.
- Payment items with a quantity of 0 are missing from the smart tag {all_fields} in your notification emails.
- With 2.0.5.2, the Elementor editor also loads completely again on websites without a published form.
What this means for you
It is best to check today under "Plugins" in the "Installed Plugins" list which version of WPForms you are running. If it says 2.0.4 or an older number, update to 2.0.5.2. For future fixes, the "Enable auto-updates" link in the plugin's row helps.
It is best to open the detail pages of your payments under "WPForms" and "Payments" only after the update, because the browser executes injected code as soon as the page loads. If your payment form already offered a field with "Other" before, then check the user list for unknown accounts. A test payment will then show you whether the form works as usual. How to maintain extensions in the long term is explained in the lesson Keeping themes and plugins up to date from the TutKit course for WordPress beginners.
Wordfence made the security vulnerability in WPForms public on November 26, 2026.
Sources