Skip to main content
EPSS 0.7%top 50%

CVE-2026-52889: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in verbb formie

0
Critical
Published: 08/19/2026 (08/19/2026, 14:57:12 UTC)
Source: GCVE Database
Vendor/Project: verbb
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Packagistghsa
verbb/formie
Affected versions
<3.1.27

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

AILast updated: 08/21/2026, 11:10:37 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses