# Formie Hidden field defaults vulnerable to Server-Side Template Injection

Critical severity, published 2026-07-06. Update verbb/formie to 3.1.27 or later: composer update verbb/formie.

Canonical URL: https://buzzphp.com/security/ghsa-565m-g33j-jq96 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.8) |
| Published | 2026-07-06 |
| Updated | 2026-07-06 |
| CVE | [CVE-2026-52889](https://nvd.nist.gov/vuln/detail/CVE-2026-52889) |
| GHSA | [GHSA-565m-g33j-jq96](https://github.com/advisories/GHSA-565m-g33j-jq96) |
| Weakness | CWE-1336 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| verbb/formie | < 3.1.27 | 3.1.27 |

## What to do

Update verbb/formie to 3.1.27 or later: composer update verbb/formie.

Check which version you run with `composer show verbb/formie`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-565m-g33j-jq96 on GitHub](https://github.com/advisories/GHSA-565m-g33j-jq96)
- [CVE-2026-52889 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52889)
- [All Composer security advisories](https://buzzphp.com/security)
