Simple CAPTCHA with Cloudflare Turnstile <= 1.44.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
- State
- Published
- Severity
- 6.4 Medium
- Published
- Nov 4, 2026
- Updated
- Nov 4, 2026
- Reserved
- Sep 18, 2026
Description
The Simple CAPTCHA with Cloudflare Turnstile plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' attribute of the [gravity-simple-turnstile] shortcode in versions up to, and including, 1.44.3 This is due to insufficient input sanitization and output escaping on the shortcode attribute in the cfturnstile_gravity_shortcode() function: the value is filtered only by esc_html() and sanitize_text_field() (neither of which touches parentheses or dots) and then emitted via esc_js() in a raw JavaScript expression context outside any string literal (esc_js only escapes quotes, backslashes, and newlines). 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.
| Product | Versions |
|---|---|
| Simple CAPTCHA with Cloudflare Turnstile elliotvs | 1.44.3 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 6.4 Medium | Wordfence |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/056a6984-4753-4f52-87b0-1a3cc2f5bde2?source=cve
- https://plugins.trac.wordpress.org/browser/simple-cloudflare-turnstile/tags/1.43.1/inc/integrations/forms/gravity-forms.php#L22
- https://plugins.trac.wordpress.org/browser/simple-cloudflare-turnstile/tags/1.43.1/inc/integrations/forms/gravity-forms.php#L13
- https://plugins.trac.wordpress.org/browser/simple-cloudflare-turnstile/tags/1.41.0/inc/integrations/forms/gravity-forms.php#L22
- https://plugins.trac.wordpress.org/browser/simple-cloudflare-turnstile/tags/1.41.0/inc/integrations/forms/gravity-forms.php#L13
- https://plugins.trac.wordpress.org/browser/simple-cloudflare-turnstile/
- https://plugins.trac.wordpress.org/changeset/3776057/simple-cloudflare-turnstile/trunk/inc/integrations/forms/gravity-forms.php
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.