Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify public Craft site running Formie
-
DeliveryLocate form with Hidden field (Custom default)
-
ExploitSubmit Twig injection payload in Hidden field
-
ExecutionServer evaluates payload via Variables::getParsedValue
-
PersistTwig executes attacker code
-
ImpactAchieve RCE or data disclosure on Craft site
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target Craft CMS site must run Verbb Formie at a vulnerable version (verbb/formie < 2.2.20, or >= 3.0.0-beta.1 and < 3.1.24) and must expose a public-facing Formie form that includes at least one Hidden field whose Default value source is configured to Custom; the attacker submits the form over the network with a crafted value for that Hidden field, which is then evaluated as Twig during submission handling. No Craft control-panel login or other authentication is required (consistent with CVSS PR:N and the advisory's explicit 'No CP login for the reported chain' statement), and no user interaction is needed. Exploitation is limited to sites meeting the above configuration: forms without Hidden fields, or Hidden fields not using the Custom default source, are not on the disclosed chain, and the ultimate severity also depends on whether Craft's Twig sandbox restricts dangerous functions in the rendering context. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8 Critical) is consistent with the description: network-reachable public forms, low complexity, no privileges, no user interaction, and high impact across confidentiality, integrity, and availability through Twig-based RCE. The advisory explicitly states no Craft control-panel login is required, reinforcing PR:N. No EPSS score, KEV listing, or SSVC decision was provided in the input, and no public PoC is referenced - so real-world exploitation pressure is currently unknown, though the trivially identifiable code path and detailed public advisory/commit diff substantially lower the barrier to weaponization by anyone reading the patch. Exploitation in practice is gated by site configuration: a public Formie form must exist and include at least one Hidden field whose Default value source is set to Custom; impact severity also depends on whether the Craft Twig sandbox is in effect for the rendering context. |
| Exploit ScenarioDerived | An unauthenticated attacker enumerates a target Craft CMS site, identifies a public Formie form, and inspects its HTML to locate a Hidden input whose backing field is configured with a Custom default value. They submit the form with a Twig template injection payload (for example, a {{...}} expression) in that Hidden field's value, which Formie then passes through Variables::getParsedValue() server-side, executing the attacker's Twig and yielding remote code execution or sensitive data disclosure depending on the Craft template sandbox configuration. No public PoC is referenced in the supplied data, but the published advisory and patch diff make the vulnerable code path and payload shape straightforward to reconstruct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Pre-authenticated server-side template injection in Verbb Formie (a forms plugin for Craft CMS) allows unauthenticated remote attackers to submit crafted values into Hidden fields configured with a Custom default value, which are then evaluated as Twig during submission handling. Successful exploitation can lead to arbitrary code execution and full compromise of the Craft site depending on template sandbox behavior. No public exploit identified at time of analysis, though the GitHub Security Advisory GHSA-x7m9-mwc2-g6w2 and patch commit are publicly disclosed.
RemediationAI
Vendor-released patches are available: upgrade verbb/formie to 2.2.20 (https://github.com/verbb/formie/releases/tag/2.2.20) on the 2.x branch or 3.1.24 (https://github.com/verbb/formie/releases/tag/3.1.24) on the 3.x branch, which change Hidden field serialization (src/fields/formfields/Hidden.php) to parse only the trusted configured default value rather than the submitted value (commit f690d5623163ce2a95da305238d6367575486ee3). If immediate upgrade is not feasible, the vendor-recommended workarounds are to temporarily remove Hidden fields from any public-facing forms, or to switch the Default value source for those Hidden fields away from Custom; the trade-off is loss of any dynamic default-value behavior those forms relied on, but it eliminates the Twig evaluation sink until patching. Full advisory: https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Formie is a forms plugin for Craft CMS distributed via Composer as verbb/formie. The vulnerability resides in src/fields/formfields/Hidden.php where, prior to the fix, user-submitted values for Hidden fields were passed through Variables::getParsedValue(), which evaluates strings as Twig templates against Craft's template engine. This maps to CWE-94 (Improper Control of Generation of Code, i.e. code injection) and is a classic server-side template injection (SSTI) pattern: untrusted input flows into a template renderer that executes embedded expressions. The patched code only parses the field's configured defaultValue (a trusted, admin-set string) rather than the attacker-controlled submitted value, eliminating the injection sink.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/verbb/formie) · only source for this CVE.
CVSS VectorVendor: https://github.com/verbb/formie
DescriptionCVE.org
Impact
- Unauthenticated users could submit crafted values into Hidden fields (with Default value → Custom) that were evaluated as Twig during submission handling, which could lead to serious compromise of the Craft site (depending on template/sandbox behavior).
- Sites with public Formie forms that include at least one Hidden field with that configuration.
- No CP login for the reported chain.
Patches
Workarounds
- Temporarily remove Hidden fields from public forms or switch Hidden default away from Custom where feasible
- Otherwise, upgrade to patched versions
Executive ViewAI
Verbb Formie, a plugin for Craft CMS, contains a critical vulnerability (CVE-2026-45697) enabling unauthenticated attackers to execute arbitrary code and completely compromise affected websites. Organizations running unpatched Craft CMS instances with Formie enabled face immediate risk of data theft, site takeover, and operational disruption. Remediation is urgent and mandatory.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-33421
GHSA-x7m9-mwc2-g6w2
NVD
CVE.org
EPSS
Exploit-DB