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
The vulnerability in verbb formie plugin arises from improper control of code generation (CWE-94) where unauthenticated attackers can inject Twig template code via Hidden fields with Custom default values. During form submission, these injected values are evaluated as Twig templates, potentially allowing remote code execution or other severe impacts on the Craft CMS site. This affects versions before 2.2.20 and between 3.0.0-beta.1 and 3.1.24. The issue is resolved by updating to formie 2.2.20 or 3.1.24.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Twig code within the context of the Craft CMS site, potentially leading to full site compromise including data disclosure, modification, or denial of service. The vulnerability has a critical CVSS score of 9.8 reflecting its high impact on confidentiality, integrity, and availability without requiring authentication or user interaction.
Mitigation Recommendations
A fix is available in formie versions 2.2.20 and 3.1.24. Users should upgrade to these or later versions immediately to remediate this vulnerability. There is no indication that temporary mitigations or workarounds are provided by the vendor. Patch status is confirmed by the version information in the advisory.
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
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in verbb formie plugin arises from improper control of code generation (CWE-94) where unauthenticated attackers can inject Twig template code via Hidden fields with Custom default values. During form submission, these injected values are evaluated as Twig templates, potentially allowing remote code execution or other severe impacts on the Craft CMS site. This affects versions before 2.2.20 and between 3.0.0-beta.1 and 3.1.24. The issue is resolved by updating to formie 2.2.20 or 3.1.24.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Twig code within the context of the Craft CMS site, potentially leading to full site compromise including data disclosure, modification, or denial of service. The vulnerability has a critical CVSS score of 9.8 reflecting its high impact on confidentiality, integrity, and availability without requiring authentication or user interaction.
Mitigation Recommendations
A fix is available in formie versions 2.2.20 and 3.1.24. Users should upgrade to these or later versions immediately to remediate this vulnerability. There is no indication that temporary mitigations or workarounds are provided by the vendor. Patch status is confirmed by the version information in the advisory.
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: 5/29/2026, 7:18:38 PM
Last enriched: 5/29/2026, 7:33:35 PM
Last updated: 5/29/2026, 8:29:08 PM
Views: 4
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.