{"id":"CVE-2026-45697","published":"2026-05-29T19:01:49Z","modified":"2026-06-01T15:18:51Z","title":"Formie: Pre-authenticated server-side template injection in Hidden fields","vendor":"verbb","product":"formie","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00475,"percentile":0.41991,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3","tags":["x_refsource_MISC"]},{"url":"https://github.com/verbb/formie/releases/tag/2.2.20","tags":["x_refsource_MISC"]},{"url":"https://github.com/verbb/formie/releases/tag/3.1.24","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":8.4},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"verbb","affectedVersions":[{"vendor":"verbb","product":"formie","versions":["< 2.2.20",">= 3.0.0-beta.1, < 3.1.24"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-01T15:18:36.758634Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"verbb/formie","vulnerableRanges":[">=3.0.0-beta.1, <3.1.24","<2.2.20"],"patched":["3.1.24","2.2.20"],"from":["GHSA-x7m9-mwc2-g6w2"],"provenance":"source"}],"summary":{"text":"Formie, a form-building plugin for the Craft CMS, contains a server-side template injection flaw in its Hidden fields, which are affected when their default value is set to Custom. An unauthenticated remote attacker with network access can submit crafted values to those fields, which are then evaluated as Twig during form submission, with no user interaction or prior authentication required and potentially serious compromise of the Craft site depending on template and sandbox behavior.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:15Z"},"euvd":{"id":"EUVD-2026-33421","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-verbb-formie-cve-2024-35191","parents":[{"from":"CVE-2024-35191","to":"CVE-2026-45697","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/fields/formfields/Hidden.php"],"commits":["https://github.com/verbb/formie/commit/90296edf7e707f117e760aa57e70dbd43a854420","https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3"],"basis":"shared function","functions":["serializeValue"]}]}],"packageHistory":[{"cve":"CVE-2024-35191","published":"2024-05-20","fixed":"2.1.6","kev":false},{"cve":"CVE-2025-32426","published":"2025-04-11","fixed":"2.1.44","kev":false,"link":{"from":"CVE-2025-32426","to":"CVE-2026-45697","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:verbb/formie","fromFixed":"2.1.44","toFixed":"2.2.20","daysApart":413}]}},{"cve":"CVE-2025-32427","published":"2025-04-11","fixed":"2.1.44","kev":false},{"cve":"CVE-2026-45697","published":"2026-05-29","fixed":"3.1.24","kev":false},{"cve":"CVE-2026-47266","published":"2026-05-29","fixed":"3.1.26","kev":false,"link":{"from":"CVE-2026-45697","to":"CVE-2026-47266","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:verbb/formie","fromFixed":"3.1.24","toFixed":"3.1.26","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:verbb/formie","fromFixed":"2.2.20","toFixed":"2.2.21","daysApart":0}]}},{"cve":"CVE-2026-52889","published":"2026-08-19","fixed":"3.1.27","kev":false},{"cve":"CVE-2026-76086","published":"2026-09-23","fixed":"3.1.31","kev":false}],"package":"Packagist:verbb/formie"}}