Skip to main content
Vulnerability Database/CVE-2026-101335

CVE-2026-101335: Forminator WordPress Plugin RCE Vulnerability

CVE-2026-101335 is a remote code execution vulnerability in the Forminator Forms WordPress plugin that enables arbitrary shortcode execution. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101335 Overview

CVE-2026-101335 is an Arbitrary Shortcode Execution vulnerability in the Forminator Forms – Contact Form, Payment Form & Custom Form Builder plugin for WordPress. The flaw affects all versions up to and including 1.58.1. Unauthenticated attackers can inject WordPress shortcodes through the HTTP User-Agent header or the referer_url POST parameter when submitting a quiz form. The plugin processes these attacker-controlled values through sanitize_text_field() and esc_html(), neither of which strip [ or ] shortcode delimiters, before passing the content to do_shortcode(). The impact depends on which shortcodes are registered by other installed plugins and themes, ranging from content injection to information disclosure. The vulnerability is classified under CWE-94: Improper Control of Generation of Code.

Critical Impact

Unauthenticated attackers can execute arbitrary WordPress shortcodes registered on the target site, enabling content injection and potential information disclosure through any shortcode exposed by installed plugins or themes.

Affected Products

  • Forminator Forms – Contact Form, Payment Form & Custom Form Builder plugin for WordPress
  • Versions up to and including 1.58.1
  • WordPress sites running Forminator quiz modules with notification templates containing the {quiz_result} merge tag

Discovery Timeline

  • 2026-10-16 - CVE-2026-101335 published to the National Vulnerability Database
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-101335

Vulnerability Analysis

The vulnerability resides in the forminator_replace_quiz_form_data() helper function in the Forminator plugin. When a quiz is submitted, the plugin processes a notification template that may contain multiple merge tags. The {user_agent} and {refer_url} tags are substituted first using attacker-controlled request data. The {quiz_result} tag is substituted later, after which do_shortcode() is invoked on the fully expanded notification body.

Because do_shortcode() executes against the complete expanded string, any shortcode delimiters smuggled through the earlier merge tags are evaluated by WordPress. The exploitation path requires no authentication and no user interaction beyond a crafted quiz submission. Blast radius depends entirely on the shortcodes registered by other plugins and themes on the target site.

Root Cause

The root cause is unsafe composition of sanitization routines with later code evaluation. The sanitizers applied to User-Agent and referer_url input — sanitize_text_field() and esc_html() — strip tags and normalize whitespace but preserve the [ and ] characters. When the sanitized values flow into a notification body that is later passed to do_shortcode(), the preserved brackets allow attacker input to be parsed as shortcode syntax.

Attack Vector

An unauthenticated attacker submits a quiz on the target WordPress site. The attacker sets a crafted User-Agent header or supplies a referer_url POST parameter containing shortcode syntax such as [target_shortcode attr="value"]. If the quiz notification template includes the {quiz_result} merge tag, the plugin substitutes all merge tags and then calls do_shortcode() on the result, executing any registered shortcode referenced by the attacker payload.

The vulnerability mechanism is described in prose only; no verified public exploit code is referenced in the advisory. See the Wordfence Vulnerability Analysis and the WordPress Forminator Changeset History for the patched code paths.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-101335

Indicators of Compromise

  • HTTP requests to Forminator quiz submission endpoints containing [ or ] characters in the User-Agent header.
  • POST bodies to Forminator quiz endpoints where the referer_url parameter contains shortcode-style brackets or known shortcode names.
  • Outbound notification emails from the site that render executed shortcode output in places where only quiz metadata is expected.
  • Unexpected content in admin notification emails originating from quiz submissions, such as embedded media, file listings, or user data.

Detection Strategies

  • Inspect web server access logs for Forminator form submission URIs correlated with anomalous User-Agent strings containing shortcode delimiters.
  • Monitor WordPress action logs for quiz submissions where request metadata contains [ or ] characters.
  • Deploy a web application firewall rule that flags shortcode syntax in User-Agent headers and referer_url parameters directed at Forminator endpoints.

Monitoring Recommendations

  • Alert on repeated quiz submissions from the same source IP containing bracket characters in request headers.
  • Track Forminator plugin version across WordPress fleets and flag any instance running 1.58.1 or earlier.
  • Review outbound mail queues for notification bodies containing unexpected shortcode-rendered output.

How to Mitigate CVE-2026-101335

Immediate Actions Required

  • Update the Forminator Forms plugin to the patched release that supersedes version 1.58.1 as soon as it is available on the WordPress plugin repository.
  • Audit all quiz notification templates for use of the {quiz_result} merge tag and remove it where it is not required.
  • Review the list of shortcodes registered on the site and disable or restrict any that expose sensitive data or privileged functionality.

Patch Information

The vendor patched the vulnerability in the Forminator plugin following the referenced changeset. Refer to the WordPress Forminator Changeset History for the exact code modifications. Site operators should install the fixed version through the WordPress admin plugin updater or via WP-CLI.

Workarounds

  • Temporarily disable Forminator quiz modules until the plugin can be updated.
  • Remove the {quiz_result} merge tag from all quiz notification templates to break the vulnerable code path.
  • Deploy WAF rules that strip or block [ and ] characters in User-Agent headers and the referer_url POST parameter sent to Forminator endpoints.
  • Unregister high-risk shortcodes exposed by other plugins or themes using remove_shortcode() in a mu-plugin where feasible.
bash
# Update Forminator via WP-CLI once the patched version is available
wp plugin update forminator

# Verify installed version is no longer 1.58.1 or earlier
wp plugin get forminator --field=version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.