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-2025-32426 Overview
CVE-2025-32426 is a stored cross-site scripting (XSS) vulnerability in Formie, a Craft CMS plugin developed by Verbb for building web forms. Versions prior to 2.1.44 allow an authenticated user with access to a form's email notification settings to inject malicious HTML or JavaScript into the notification body. The injected payload executes when the email notification is rendered in the preview interface. Delivered emails are not affected. The flaw is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation. Verbb addressed the issue in Formie 2.1.44.
Critical Impact
An attacker with form administration privileges can execute arbitrary JavaScript in the browser session of any Craft CMS user who previews a tampered email notification, enabling session theft or administrative action abuse.
Affected Products
- Verbb Formie plugin for Craft CMS, all versions prior to 2.1.44
- Craft CMS installations with Formie installed and multiple back-end users
- Deployments where form editors and site administrators share the control panel
Discovery Timeline
- 2025-04-11 - CVE-2025-32426 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-32426
Vulnerability Analysis
Formie allows site editors to configure email notifications that fire when a form is submitted. The notification body supports HTML content so administrators can style messages. In versions prior to 2.1.44, the Craft CMS control panel renders the email body inside the preview pane without properly neutralizing script-bearing HTML. When a privileged user opens the preview, the browser executes any attacker-supplied <script> tags or event handler attributes within the context of the authenticated session.
The behavior diverges from normal mail delivery. The outbound mail transport sanitizes or encodes content sufficiently to prevent execution in standard mail clients, so the issue surfaces only in the plugin's preview workflow. This narrows the attack to users who already hold write access to notification settings but allows them to pivot against higher-privileged accounts that trigger the preview.
Root Cause
The root cause is missing output encoding in the email notification preview renderer. The template path responsible for displaying the preview emits user-controlled HTML directly into the Document Object Model (DOM) instead of escaping or stripping dangerous constructs. This maps to [CWE-79].
Attack Vector
Exploitation requires network access to the Craft CMS control panel, authenticated low-privilege access, and user interaction from the victim. A malicious editor edits a form's email notification template and inserts a payload such as a <script> tag or an onerror handler on an <img> element. When another authenticated user, including an administrator, opens the preview tab for that notification, the payload executes in their browser. The resulting scoped execution can read session tokens, perform actions through the control panel API, or stage further attacks.
See the Verbb Formie Security Advisory GHSA-2xm2-23ff-p8ww for the vendor description.
Detection Methods for CVE-2025-32426
Indicators of Compromise
- Unexpected <script> tags, javascript: URIs, or inline event handlers such as onerror, onload, or onclick stored in Formie email notification body fields.
- Audit log entries showing edits to form notification templates by accounts that do not normally manage marketing or transactional email content.
- Control panel sessions originating from administrator accounts that triggered unexpected outbound API calls shortly after visiting a form's notification preview URL.
Detection Strategies
- Query the Craft CMS database for Formie notification records and flag entries whose body content contains script tags, event handler attributes, or encoded script payloads.
- Review web server access logs for repeated requests to Formie notification preview endpoints followed by unusual control panel API activity in the same session.
- Correlate plugin version data from inventory tooling with the fixed version 2.1.44 to identify unpatched installations.
Monitoring Recommendations
- Enable and retain Craft CMS audit logging for Formie configuration changes, including notification template edits.
- Alert on new or modified low-privilege editor accounts that gain access to Formie form settings.
- Monitor outbound requests from control panel browser sessions for anomalous destinations consistent with session exfiltration.
How to Mitigate CVE-2025-32426
Immediate Actions Required
- Upgrade the Formie plugin to version 2.1.44 or later on every Craft CMS environment.
- Audit existing form notification templates and remove any HTML containing scripts, inline event handlers, or external script references that were not authored by trusted administrators.
- Rotate control panel session tokens and reset credentials for any administrator who previewed suspicious notifications prior to patching.
Patch Information
Verbb released Formie 2.1.44 with the fix for the preview rendering flaw. Installation details and the vendor's advisory are available in the GitHub Security Advisory GHSA-2xm2-23ff-p8ww. Update using Composer and clear Craft CMS template and compiled caches after upgrading.
Workarounds
- Restrict Formie form and notification editing permissions to a small set of trusted users until the upgrade is deployed.
- Instruct administrators to avoid opening the notification preview tab on forms edited by lower-privileged users until patching is complete.
- Deploy a Content Security Policy (CSP) on the Craft CMS control panel that disallows inline script execution to reduce the impact of residual XSS.
# Upgrade Formie via Composer
composer require verbb/formie:^2.1.44
php craft migrate/all
php craft clear-caches/all
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

