BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
verbb/formie (opens in a new tab)< 3.1.273.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 audit

Advisory details

SeverityCriticalCVSS 9.8
Published
Updated
CVECVE-2026-52889 (opens in a new tab)
GHSAGHSA-565m-g33j-jq96 (opens in a new tab)
WeaknessCWE-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

All Composer security advisories