Formie: Server-Side Template Injection in Formie Hidden field defaults
Published Aug 19, 2026
9.8
CRITICALCVSS 3.1
EPSS 1.27%
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.
Affected products
-
- Version < 3.1.27StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-62518 Advisory
- https://github.com/advisories/GHSA-565m-g33j-jq96 Advisory
- https://github.com/verbb/formie/commit/d3b9d15290405e484e3b5c91c5d8fab93047f9b2 x_refsource_MISC
- https://github.com/verbb/formie/releases/tag/3.1.27 x_refsource_MISC
- https://github.com/verbb/formie/security/advisories/GHSA-565m-g33j-jq96 x_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-62518 | Advisory | |
| https://github.com/advisories/GHSA-565m-g33j-jq96 | Advisory | |
| https://github.com/verbb/formie/commit/d3b9d15290405e484e3b5c91c5d8fab93047f9b2 | x_refsource_MISC | |
| https://github.com/verbb/formie/releases/tag/3.1.27 | x_refsource_MISC | |
| https://github.com/verbb/formie/security/advisories/GHSA-565m-g33j-jq96 | x_refsource_CONFIRM |
Change history (0)
No recorded changes yet.