CVE-2026-45697 Details
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.
A server-side template injection vulnerability has been identified in the Formie Craft CMS plugin, affecting versions prior to 2.2.20 and 3.1.24. The issue arises in Hidden fields configured with a Default value set to Custom, allowing unauthenticated users to submit crafted values that are evaluated as Twig during the submission process. This could lead to a serious compromise of the Craft site, depending on the behavior of the template and sandboxing. The vulnerability is present in sites with public Formie forms that include at least one Hidden field with the vulnerable configuration.
Users can upgrade to Formie versions 2.2.20 or 3.1.24, both of which include the necessary fix. Alternatively, Hidden fields can be temporarily removed from public forms or the Default value can be switched away from Custom, where feasible.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 29, 2026CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3 | [email protected] | Source CodeVendor |
| https://github.com/verbb/formie/releases/tag/2.2.20 | [email protected] | Release NotesVendor |
| https://github.com/verbb/formie/releases/tag/3.1.24 | [email protected] | Release NotesVendor |
| https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
| CWE-693 | Protection Mechanism Failure | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Formie | < 2.2.20 (semver) < 3.1.24 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 29, 2026 | New CVE Received | [email protected] |
Volerion