CVE-2026-45697
Formie: Pre-authenticated server-side template injection in Hidden fields
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
Formie is a Craft CMS plugin for creating forms. Prior to 2.2.20 and 3.1.24, 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). This vulnerability is fixed in 2.2.20 and 3.1.24.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| composer::GitHub Security Advisory Composer | verbb/formie | 3.1.24, 2.2.20 |
References
- https://github.com/verbb/formie
- 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://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2
- https://nvd.nist.gov/vuln/detail/CVE-2026-45697