What the vulnerability does
01Description
The WPForms – AI Form Builder for WordPress – Contact Forms, Payment Forms, Survey Form, Quiz & More plugin for WordPress is vulnerable to Stored Cross-Site Scripting via OptinMonster Integration data-sitekey Attribute in Post Content in all versions up to, and including, 2.0.0.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the OptinMonster plugin to be installed and configured with an active inline campaign that outputs matching #om-{id} markup on the target page, as the WPForms handler only fires when OptinMonster emits its 'om.Campaign.load' event.
Explanation of Vulnerability in Simple Terms
02Summary
WPForms contains a stored cross-site scripting (XSS) vulnerability in versions up to 2.0.0.1. An authenticated attacker with low privileges can inject malicious scripts that execute in other users' browsers when they view affected content. The vulnerability has limited scope but can compromise user sessions and data. Update to a version newer than 2.0.0.1.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that run in other users' browsers when they interact with forms.
Potential impact on your site
04Site Impact
Authenticated users' sessions and data could be compromised if an attacker injects malicious form content.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege WordPress account; no user interaction required from victims.
Key dates
06Disclosure timeline
July 21, 2026
CVE published
July 21, 2026
Record updated