Skip to main content

Formie CVE-2026-45697

| EUVDEUVD-2026-33421 CRITICAL
Code Injection (CWE-94)
2026-05-18 https://github.com/verbb/formie GHSA-x7m9-mwc2-g6w2
9.8
CVSS 3.1 · Vendor: https://github.com/verbb/formie
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify public Craft site running Formie
  2. Delivery
    Locate form with Hidden field (Custom default)
  3. Exploit
    Submit Twig injection payload in Hidden field
  4. Execution
    Server evaluates payload via Variables::getParsedValue
  5. Persist
    Twig executes attacker code
  6. Impact
    Achieve 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

formie 3.0.0-beta.1, < 3.1.24
formie < 2.2.20

Affected Packages

composer verbb/formie fix: 2.2.20, 3.1.24
euvd formie fix: 2.2.20
euvd formie_3_0_0_beta_1 fix: 3.1.24

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

Vendor (https://github.com/verbb/formie) PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 73% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy