CVE-2026-45697: CWE-94: Improper Control of Generation of Code ('Code Injection') in verbb formie
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.
AI Analysis
Technical Summary
Formie, a Craft CMS plugin for form creation, had a vulnerability (CVE-2026-45697) where unauthenticated attackers could inject malicious Twig code via Hidden fields with custom default values. These values were evaluated during form submission, enabling code injection that could compromise the site. The issue affects versions before 2.2.20 and between 3.0.0-beta.1 and before 3.1.24. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code), CWE-693, and CWE-1336. It is rated critical with a CVSS 3.1 score of 9.8 (network attack vector, low complexity, no privileges or user interaction required, high impact on confidentiality, integrity, and availability).
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary Twig code on the server, potentially leading to full site compromise including data theft, site defacement, or denial of service. The impact affects confidentiality, integrity, and availability of the Craft CMS site running the vulnerable Formie plugin versions.
Mitigation Recommendations
A fix is available in Formie versions 2.2.20 and 3.1.24. Users should upgrade to these or later versions to remediate the vulnerability. Patch status is confirmed by the version information in the advisory. No additional mitigation guidance is provided or required beyond applying the official updates.
CVE-2026-45697: CWE-94: Improper Control of Generation of Code ('Code Injection') in verbb formie
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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Formie, a Craft CMS plugin for form creation, had a vulnerability (CVE-2026-45697) where unauthenticated attackers could inject malicious Twig code via Hidden fields with custom default values. These values were evaluated during form submission, enabling code injection that could compromise the site. The issue affects versions before 2.2.20 and between 3.0.0-beta.1 and before 3.1.24. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code), CWE-693, and CWE-1336. It is rated critical with a CVSS 3.1 score of 9.8 (network attack vector, low complexity, no privileges or user interaction required, high impact on confidentiality, integrity, and availability).
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary Twig code on the server, potentially leading to full site compromise including data theft, site defacement, or denial of service. The impact affects confidentiality, integrity, and availability of the Craft CMS site running the vulnerable Formie plugin versions.
Mitigation Recommendations
A fix is available in Formie versions 2.2.20 and 3.1.24. Users should upgrade to these or later versions to remediate the vulnerability. Patch status is confirmed by the version information in the advisory. No additional mitigation guidance is provided or required beyond applying the official updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T04:38:01.165Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a19e68ee29bf47b50037d6e
Added to database: 05/29/2026, 19:18:38 UTC
Last enriched: 06/05/2026, 21:03:02 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.