verbb/formie · Security
Formie: Pre-authenticated server-side template injection in Hidden fields
- GHSA ID
- GHSA-x7m9-mwc2-g6w2
- CVE ID
- CVE-2026-45697
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
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
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
- CWE-693 · Protection Mechanism Failure
- CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
References
- https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2 ↗
- https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3 ↗
- https://github.com/verbb/formie/releases/tag/2.2.20 ↗
- https://github.com/verbb/formie/releases/tag/3.1.24 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2026-45697 ↗
- https://github.com/advisories/GHSA-x7m9-mwc2-g6w2 ↗