Formie Hidden field defaults vulnerable to Server-Side Template Injection
Critical severity. Published 6 July 2026. Update verbb/formie to 3.1.27 or later: composer update verbb/formie.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| verbb/formie (opens in a new tab) | < 3.1.27 | 3.1.27 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show verbb/formie
composer auditAdvisory details
| Severity | CriticalCVSS 9.8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-52889 (opens in a new tab) |
| GHSA | GHSA-565m-g33j-jq96 (opens in a new tab) |
| Weakness | CWE-1336 |
What the advisory says
Summary Formie Hidden fields could evaluate request-derived values as Twig during front-end form rendering.
When a Hidden field used a dynamic default value such as HTTP User Agent, Referer URL, Current URL, Query Parameter, or Cookie Value, the value was copied from the incoming request and later passed to Craft’s Twig rendering layer. This allowed an unauthenticated attacker to provide Twig syntax in request-controlled input and have it evaluated server-side when the form was rendered.
Affected Versions verbb/formie for Craft 5: - Affected: = 3.0.0-beta.1, <= 3.1.26 - Patched: 3.1.27
Source: GHSA-565m-g33j-jq96 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Formie: Integration form-settings action allows SSRF and exfiltration of stored integration credentials (high, 23 September 2026)
- Formie: Missing authorization on sent notification resend modal exposes submission PII (high, 23 September 2026)
- Formie: Unauthenticated users can overwrite incomplete submissions via submit action (high, 23 September 2026)
- Formie: Missing authorization in administrative settings allows low-privileged CP users to modify plugin configuration (opens in a new tab) (medium, 17 July 2026)