Description
Formie is a Craft CMS plugin for creating forms. Prior to 2.2.20 and 3.1.24, 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). This vulnerability is fixed in 2.2.20 and 3.1.24.
Published: 2026-05-29
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Unauthenticated users can submit crafted values into hidden form fields in Formie, a Craft CMS plugin. These values are interpreted as Twig templates during submission handling, allowing the execution of arbitrary Twig code on the server. This flaw is a classic server‑side template injection (CWE‑1336) that could also lead to the use of eval‑like functions (CWE‑94) or improper data validation (CWE‑693). Depending on the Craft site’s Twig sandbox configuration, an attacker may read or modify sensitive data, create privileged accounts, or gain full control of the application.

Affected Systems

The vulnerability affects all versions of the Verbb Formie plugin released before 2.2.20 and 3.1.24. Administrators using earlier releases with any hidden form field configured to accept a custom default value are at risk. The plugin is a third‑party component integrated into Craft CMS sites, so the impact is limited to environments where Formie is installed and enabled.

Risk and Exploitability

The CVSS score of 9.8 reflects critical risk, and the EPSS score is not available, making the exact exploitation probability unknown. The likely attack vector is web‑based: an unauthenticated visitor can submit a crafted HTTP request to a form protected by Formie. If the site’s Twig sandbox allows template evaluation, the attacker’s payload can run with the application’s process privileges. Because this vulnerability is not listed in CISA’s KEV catalog, there is no evidence of widespread exploitation yet, but the high severity warrants immediate attention.

Generated by OpenCVE AI on May 29, 2026 at 20:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Formie plugin to version 2.2.20 or 3.1.24 or later.
  • Configure all hidden form fields to use static values rather than custom defaults, or disable custom‑default processing.
  • If an immediate upgrade is not feasible, restrict form accessibility to authenticated users or block the form endpoint from public traffic, and consider disabling Twig evaluation for any custom inputs via the Craft CMS sandbox settings.

Generated by OpenCVE AI on May 29, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-x7m9-mwc2-g6w2 Formie: Pre-authenticated server-side template injection in Hidden fields
History

Fri, 29 May 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Verbb
Verbb formie
Vendors & Products Verbb
Verbb formie

Fri, 29 May 2026 19:30:00 +0000

Type Values Removed Values Added
Description Formie is a Craft CMS plugin for creating forms. Prior to 2.2.20 and 3.1.24, 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). This vulnerability is fixed in 2.2.20 and 3.1.24.
Title Formie: Pre-authenticated server-side template injection in Hidden fields
Weaknesses CWE-1336
CWE-693
CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-29T19:01:49.220Z

Reserved: 2026-05-13T04:38:01.165Z

Link: CVE-2026-45697

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-05-29T20:16:27.393

Modified: 2026-05-29T20:21:38.773

Link: CVE-2026-45697

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T21:00:09Z

Weaknesses