Description
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.
Published: 2026-07-21
Score: 4.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The WPForms AI Form Builder for WordPress plugin is vulnerable to a stored cross‑site scripting flaw caused by insufficient input sanitization and output escaping. An authenticated user with contributor‑level access or higher can inject arbitrary JavaScript into post content through the OptinMonster integration’s data‑sitekey attribute. When a user views the affected page, the malicious script runs in their browser, potentially defacing the site, stealing cookies, or hijacking user sessions. The vulnerability is a pure input‑validation issue and does not allow arbitrary code execution beyond the victim’s browser context.

Affected Systems

WordPress sites running WPForms versions up to and including 2.0.0.1 are affected. The flaw exists only when the OptinMonster plugin is installed and an active inline campaign that outputs #om‑{id} markup is present, as the WPForms handler listens for the ‘om.Campaign.load’ event. All other WordPress core or theme versions are unaffected directly.

Risk and Exploitability

The CVSS score of 4.9 reflects moderate severity. EPSS indicates a very low – but nonzero – probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Attackers must be authenticated and possess contributor‑level or higher privileges, and the presence of an active OptinMonster inline campaign is required. No widespread public exploitation has been reported, yet the risk remains for sites that have not applied the fix.

Generated by OpenCVE AI on July 30, 2026 at 18:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the WPForms plugin to a version that fixes the stored XSS issue, preferably the latest stable release.
  • Disable or remove the OptinMonster plugin, or disable inline campaigns on sites that still use vulnerable WPForms versions to prevent the trigger for the XSS loop.
  • Review and sanitize existing post content that may contain injected scripts, removing any suspicious data‑sitekey attributes or other payloads.
  • Apply stricter output escaping in custom code or child themes that interact with WPForms, ensuring that any data inserted into posts is properly sanitized.
  • Restrict contributor‑level access on sites that rely on older WPForms releases until the patch is applied, limiting the ability of attackers to modify post content.

Generated by OpenCVE AI on July 30, 2026 at 18:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 21 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 05:45:00 +0000

Type Values Removed Values Added
Description 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.
Title WPForms <= 2.0.0.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via OptinMonster Integration data-sitekey Attribute in Post Content
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-21T13:27:49.495Z

Reserved: 2026-07-14T18:56:43.945Z

Link: CVE-2026-15782

cve-icon Vulnrichment

Updated: 2026-07-21T13:27:44.735Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:15:13Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')