CVE-2026-45697
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedFormie 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceFormie plugin for Craft CMS allows unauthenticated users to inject Twig code through Hidden fields configured with Custom default values. During form submission, these crafted values are evaluated as Twig templates, enabling potential remote code execution depending on template/sandbox settings.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm Formie plugin is installedNavigate to the Craft CMS plugin store or check the /admin/plugins dashboard to verify Formie is installed and note its current version numberAffected if Formie plugin is present in the Craft CMS installation
-
Check installed Formie versionView the installed version in the Craft CMS control panel under Settings > Plugins > Formie, or check the composer.json file in the vendor directory for the formie plugin version entryAffected if Version is earlier than 2.2.20 or 3.1.24, or the version cannot be determined
-
Identify Hidden fields using Custom default valuesIn Formie plugin settings, go to each form and inspect all Hidden field configurations. Look for fields where the Default Value setting is set to 'Custom' rather than 'Static' or 'None'Affected if Any Hidden field has 'Custom' selected as the default value type, allowing Twig input
-
Inspect the custom default value contentFor each Hidden field with Custom default values, view the actual Twig code entered in the default value field and check for potentially malicious template syntax or injection attemptsAffected if The custom default value contains user-supplied or unsanitized Twig template syntax that could be exploited
A user is affected if Formie is installed with a version before 2.2.20 or 3.1.24 AND any form contains a Hidden field configured with a Custom default value that accepts Twig input.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Formie to version 2.2.20 (for Formie 2.x) or 3.1.24 (for Formie 3.x) immediately. If immediate upgrade is not feasible, disable or remove any Hidden fields using Custom default values until patching is complete.
Formie 2.2.20+ (for 2.x line) or 3.1.24+ (for 3.x line)
- Identify your current Formie plugin version by checking the composer.json or Craft CMS plugin store
- If using Formie 2.x, upgrade to version 2.2.20 or later
- If using Formie 3.x, upgrade to version 3.1.24 or later
- Run composer update verbb/formie or use the Craft CMS plugin store to apply the update
- Clear Craft CMS caches after upgrade (Settings → Clear Caches)
- Verify the upgrade was successful by checking the plugin version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation1.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-45697 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-45697 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data