Formie: Pre-authenticated server-side template injection in Hidden fields
Impact
- Unauthenticated users could submit crafted values into Hidden fields (with Default value → Custom) that were evaluated as Twig during submission handling, which could lead to serious compromise of the Craft site (depending on template/sandbox behavior).
- Sites with public Formie forms that include at least one Hidden field with that configuration.
- No CP login for the reported chain.
Patches
Workarounds
- Temporarily remove Hidden fields from public forms or switch Hidden default away from Custom where feasible
- Otherwise, upgrade to patched versions
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | verbb/formie | >= 3.0.0-beta.1, < 3.1.24, < 2.2.20 | 3.1.24, 2.2.20 |
References
- https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2
- https://nvd.nist.gov/vuln/detail/CVE-2026-45697
- https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3
- https://github.com/verbb/formie
- https://github.com/verbb/formie/releases/tag/2.2.20
- https://github.com/verbb/formie/releases/tag/3.1.24
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-1336, CWE-693, CWE-94- Platform
- Composer
- Package
verbb/formie- Disclosed
- 18.05.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-x7m9-mwc2-g6w2 - CC BY 4.0
Vulnerability history: verbb/formie
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 05.2024 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 4
- Medium 4
Disclosures per year
- 2024: 1
- 2025: 2
- 2026: 7
-
Formie: Pre-authenticated server-side template injection in Hidden fields this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.