CVE-2026-52889: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in verbb formie
Formie is a Craft CMS plugin for creating forms. Prior to 3.1.27, Formie can pass request-derived Hidden field defaults such as HTTP User Agent, Referer URL, Current URL, Current URL without Query String, Query Parameter, and Cookie Value to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can place Twig syntax in one of these request-controlled inputs when a public form contains an affected Hidden field. Hidden::getFrontEndInputOptions() then assigns the value to defaultValue and calls renderString, causing server-side template evaluation rather than treating the request data as a plain string. Depending on the Craft site configuration and available Twig capabilities, exploitation can disclose sensitive information, modify application state, or achieve remote code execution. This issue is fixed in version 3.1.27.
AI Analysis
Technical Summary
Formie, a Craft CMS plugin for creating forms, prior to version 3.1.27, improperly neutralizes special elements used in its template engine. Specifically, it passes request-derived hidden field defaults (such as HTTP User Agent, Referer URL, Current URL, Query Parameter, and Cookie Value) directly to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can inject Twig syntax into these inputs when a public form contains an affected hidden field. The method Hidden::getFrontEndInputOptions() assigns these values to defaultValue and calls renderString, causing server-side template evaluation instead of treating the input as plain strings. Depending on the Craft CMS configuration and Twig capabilities, this can lead to sensitive data disclosure, application state changes, or remote code execution. The vulnerability is addressed in Formie version 3.1.27.
Potential Impact
Exploitation of this vulnerability can allow unauthenticated attackers to execute arbitrary Twig template code on the server. This can lead to disclosure of sensitive information, unauthorized modification of application state, or remote code execution, posing a critical risk to affected systems.
Mitigation Recommendations
Upgrade Formie to version 3.1.27 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 3.1.27.
CVE-2026-52889: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in verbb formie
Description
Formie is a Craft CMS plugin for creating forms. Prior to 3.1.27, Formie can pass request-derived Hidden field defaults such as HTTP User Agent, Referer URL, Current URL, Current URL without Query String, Query Parameter, and Cookie Value to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can place Twig syntax in one of these request-controlled inputs when a public form contains an affected Hidden field. Hidden::getFrontEndInputOptions() then assigns the value to defaultValue and calls renderString, causing server-side template evaluation rather than treating the request data as a plain string. Depending on the Craft site configuration and available Twig capabilities, exploitation can disclose sensitive information, modify application state, or achieve remote code execution. This issue is fixed in version 3.1.27.
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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Formie, a Craft CMS plugin for creating forms, prior to version 3.1.27, improperly neutralizes special elements used in its template engine. Specifically, it passes request-derived hidden field defaults (such as HTTP User Agent, Referer URL, Current URL, Query Parameter, and Cookie Value) directly to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can inject Twig syntax into these inputs when a public form contains an affected hidden field. The method Hidden::getFrontEndInputOptions() assigns these values to defaultValue and calls renderString, causing server-side template evaluation instead of treating the input as plain strings. Depending on the Craft CMS configuration and Twig capabilities, this can lead to sensitive data disclosure, application state changes, or remote code execution. The vulnerability is addressed in Formie version 3.1.27.
Potential Impact
Exploitation of this vulnerability can allow unauthenticated attackers to execute arbitrary Twig template code on the server. This can lead to disclosure of sensitive information, unauthorized modification of application state, or remote code execution, posing a critical risk to affected systems.
Mitigation Recommendations
Upgrade Formie to version 3.1.27 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 3.1.27.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-565m-g33j-jq96
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52889"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a4c345527e9c797195fe1da
Added to database: 07/06/2026, 23:03:49 UTC
Last enriched: 08/21/2026, 11:10:37 UTC
Last updated: 09/13/2026, 08:18:44 UTC
Views: 106
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.