Forminator <= 1.57.2 — Unauthenticated Arbitrary Shortcode Execution via current_url (CVE-2026-92229)
Published: 2026-11-25 • Researcher: murrez (PoC repository owner); credited by Wordfence to Kuba; vendor WPMU DEV
- Severity
- Critical
- CVE
- CVE-2026-92229
- Category
- web
- Affected product
- Forminator Forms – Contact Form, Payment Form & Custom Form Builder (WordPress plugin, WPMU DEV)
- Affected versions
- All versions up to and including 1.57.2; fixed in 1.57.3. The NVD product/version-range fields were empty in the ingested record; the ranges above come from the CVE description and the upstream README.
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-92229
- https://github.com/murrez/CVE-2026-92229
- https://www.wordfence.com/threat-intel/vulnerabilities/id/7c28869c-c880-4322-9f17-09495a08576e?source=cve
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3700724%40forminator&new=3700724%40forminator
- https://plugins.trac.wordpress.org/browser/forminator/tags/1.57.2/library/abstracts/abstract-class-front-action.php#L127
- https://plugins.trac.wordpress.org/browser/forminator/tags/1.57.2/library/modules/quizzes/front/front-action.php#L60
- https://cwe.mitre.org/data/definitions/94.html
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-19 |
| Author / Researcher | murrez (PoC repository owner); credited by Wordfence to Kuba; vendor WPMU DEV |
| CVE / Advisory | CVE-2026-92229 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.1 (per NVD/worklist; vector not supplied in the ingested record) |
| Status | PoC |
| Tags | WordPress, Forminator, unauthenticated, CWE-94, code-injection, shortcode, do_shortcode, admin-ajax, plugin, quiz-module |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Forminator Forms – Contact Form, Payment Form & Custom Form Builder (WordPress plugin, WPMU DEV) |
| Versions Affected | All versions up to and including 1.57.2; fixed in 1.57.3. The NVD product/version-range fields were empty in the ingested record; the ranges above come from the CVE description and the upstream README. |
| Language / Platform | PHP (WordPress plugin); the published PoC client is Python 3.9+ |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
Forminator Forms is a WordPress form-builder plugin maintained by WPMU DEV. In versions up to and including 1.57.2, the quiz submission path runs the WordPress shortcode-processing function over a result HTML buffer that includes the attacker-supplied current-URL value, so an unauthenticated visitor can plant arbitrary shortcode markup in a quiz submission and have it executed by the site. The issue is CWE-94 code injection with a CVSS score of 9.1 and was fixed in 1.57.3 by limiting shortcode execution to the intended text fields. The public PoC (murrez/CVE-2026-92229) discovers the plugin and quiz modules, obtains the form nonce, and submits the malicious current-URL parameter through admin-ajax.php, verifying execution with a unique marker string.
Vulnerability Details
Root Cause
The quiz front-action code builds the quiz result HTML — including social-share attributes populated from the user-controlled current_url POST parameter — and then processes the whole assembled buffer with do_shortcode instead of restricting shortcode parsing to the specific text fields the plugin intends to support. Because current_url is not validated against a real URL or stripped of shortcode delimiters before the buffer is rendered, an attacker can inject arbitrary shortcodes into the page output. The upstream fix in 1.57.3 limits shortcode execution to the intended fields rather than the full HTML buffer.
Attack Vector
An unauthenticated attacker sends an HTTP POST to /wp-admin/admin-ajax.php with action set to forminator_submit_form_quizzes (or forminator_submit_preview_form_quizzes for the preview code path), a form_id for a published quiz, quiz answers, and a current_url value containing bracket-delimited shortcode markup such as a caption wrapper. A valid forminator_nonce is obtained first with an unauthenticated request using the forminator_get_nonce action. The Referer and Origin headers are set to the quiz page to look like a legitimate submission.
Impact
Arbitrary shortcode execution in the context of the WordPress site. The immediate effect is content injection or rendering of any shortcode registered by the target’s themes and other plugins, which can range from harmless markup to file disclosure, server-side request forgery, template injection, or remote code execution when a suitable shortcode is installed. The baseline vulnerability alone does not grant a shell; real-world impact depends on which shortcodes the site exposes. The PoC demonstrates and confirms execution of the shortcode primitive with a marker string rather than delivering a full RCE chain.
Environment / Lab Setup
OS: Linux (bare metal or Docker); any host able to run WordPress
Target: WordPress 6.x with Forminator <= 1.57.2 active and at least one
published quiz module
Attacker: Python 3.9+ with requests and urllib3
Tools: curl, browser developer tools, Python 3Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
Confirm the target version — the check mode fetches /wp-content/plugins/forminator/readme.txt and plugin asset URLs and compares the detected version against 1.57.2.
Shell script1python3 poc.py -u http://target --mode checkIdentify a quiz module — check mode crawls common paths (/quiz/, /contact/, /survey/ and others), extracts form IDs and, where the HTML allows, maps quiz question IDs to answer IDs.
Shell script1python3 poc.py -u http://target --mode check --page-url /quiz/ --form-id 42Obtain the form nonce — the tool POSTs action=forminator_get_nonce&form_id=42 to /wp-admin/admin-ajax.php and reads the nonce from the JSON response.
Build the payload — current_url is set to the site base URL followed by a shortcode wrapper containing the chosen shortcode and a random marker, for example [caption]PROBE fm92229_ab12cd34[/caption].
Submit the quiz — the tool POSTs the quiz answers, form_id, nonce and crafted current_url to admin-ajax.php with the quiz page as Referer and the site origin as Origin.
Confirm execution — if the marker appears in the AJAX response body or JSON payload, the shortcode was processed; single-target mode prints a JSON result with exploited true, and mass mode additionally records the target in hits.txt.
Shell script1 2python3 poc.py -u http://target --mode exploit --page-url /quiz/ --form-id 42 \ --shortcode "PROBE" --answers "2051:7608"
For authorized impact assessment only, the same request can carry a shortcode that is known to be registered on the target (for example one provided by an installed plugin) instead of the probe string.
Exploit Code
See
poc.pyin this folder (upstream file, header added for archiving). The exploit path is implemented byfetch_nonce(),build_current_url(),ajax_action()andsubmit_quiz_exploit(); CLI wiring and version/module discovery live incheck_target()andexploit_target().
The essential request shape is:
| |
Expected Output
| |
Detection & Indicators of Compromise
- POST requests to /wp-admin/admin-ajax.php with action=forminator_submit_form_quizzes or forminator_submit_preview_form_quizzes whose current_url parameter is not a plain URL and contains shortcode delimiters (literal “[” / “]” or URL-encoded %5B / %5D), especially wrappers such as [caption] or [/caption].
- A forminator_get_nonce request followed immediately by a quiz submission from the same client, with Referer and Origin pointing at a quiz page but a current_url that carries markup.
- Quiz AJAX responses containing unexpected rendered shortcode output, or a distinctive marker string such as fm92229_ followed by random characters.
- Scanner-like reconnaissance: rapid GETs to /wp-content/plugins/forminator/readme.txt, /wp-content/plugins/forminator/assets/, and common form paths (/quiz/, /survey/, /contact/) from one source.
- On-disk artifacts from this tool: cve_2026_92229_results.jsonl, hits.txt and candidates.jsonl in the operator’s working directory.
Example access-log line:
| |
SIEM / IDS Rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Update Forminator to 1.57.3 or later (1.57.3 limits shortcode execution to intended text fields); verify the changeset for the release before relying on it. |
| Workaround | If the plugin cannot be updated immediately, remove or unpublish quiz modules from public pages, and use a WAF/reverse-proxy rule to reject shortcode delimiters in current_url on admin-ajax.php quiz actions. |
| Config Hardening | Keep WordPress core, themes and all plugins patched; remove unused plugins to reduce the set of registered shortcodes; enforce least privilege for site users; monitor admin-ajax quiz traffic and plugin version exposure; front the site with a WAF. |
References
- CVE-2026-92229 — NVD
- murrez/CVE-2026-92229 — source PoC repository
- Wordfence Threat Intel — CVE-2026-92229 advisory
- Forminator 1.57.3 changeset (r3700724)
- Forminator 1.57.2 abstract-class-front-action.php (do_shortcode call)
- Forminator 1.57.2 quizzes front-action.php (current_url handling)
- MITRE CWE-94: Improper Control of Generation of Code
Notes
Auto-ingested from https://github.com/murrez/CVE-2026-92229 on 2026-11-25.
Review verdict: this is a real PoC with a working exploit mode, not a detector-only repository. The same tool also ships a check mode (version and module discovery), but the exploit mode performs the vulnerable request end to end: it fetches the quiz nonce, builds a current_url containing a shortcode, submits the quiz through admin-ajax.php and verifies the rendered marker. It was therefore ingested rather than skipped. The PoC was not executed during ingestion.
License: MIT (see LICENSE). The archived poc.py carries an added authorized-research header; upstream attribution is preserved.
Limitations: exploitation requires a published Forminator quiz module on the target; the preview action is offered as an alternative code path. Quiz answers must be parsable from the page HTML or supplied manually with –answers, so JavaScript-rendered quizzes are not auto-exploited. Proof is marker reflection of the shortcode primitive (an oracle), so a target that reflects current_url without processing shortcodes could produce a similar marker and should be validated with a shortcode whose output is distinctive. Achieving code execution or data disclosure depends on which shortcodes the target’s themes/plugins register, so the tool alone does not deliver a shell. Version detection relies on readme.txt and plugin asset URLs and can be blocked or spoofed. The check mode performs broad crawling and mass scanning; use only against systems you own or have written authorization to test.
| |