# HTML Forms – Simple WordPress Forms Plugin <= 1.7.1 - Unauthenticated Stored Cross-Site Scripting via Submission Field Names

- **ID:** WPSEC-2026-2917
- **Plugin:** HTML Forms – Simple WordPress Forms Plugin (`html-forms`), https://wordpress.org/plugins/html-forms/
- **Affected versions:** from 1.2.0 before 1.7.2
- **Fixed in:** 1.7.2 (Update to 1.7.2 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/html-forms
- **Fix released:** 2026-11-11
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2917/

## Description

The HTML Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via form submission field names in all versions up to, and including, 1.7.1 due to insufficient input sanitization of submitted field keys, which were only passed through strip_tags(), and their use as column identifiers in the submissions screen's Screen Options, where they are output unescaped. This makes it possible for unauthenticated attackers to inject arbitrary web scripts through crafted field names that will execute whenever an administrator views the form's submissions list.

## References

- https://wpsec.com/vuln/WPSEC-2026-2917/
- https://plugins.svn.wordpress.org/html-forms/tags/1.7.2/
- https://wordpress.org/plugins/html-forms/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-2917/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
