{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.2.20"
              },
              {
                "introduced": "3.0.0-beta.1"
              },
              {
                "fixed": "3.1.24"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "ea9737557806b44693c9bb029678bf288a6216e8"
            },
            {
              "fixed": "75606ded192a8a3519ee52a65965f30cf144b4f9"
            },
            {
              "fixed": "4f540392cfb37ff56c20d8c2b3ccf58a5a6311e2"
            },
            {
              "fixed": "f690d5623163ce2a95da305238d6367575486ee3"
            }
          ],
          "repo": "https://github.com/verbb/formie",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-x7m9-mwc2-g6w2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336",
      "CWE-693",
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45697.json"
  },
  "details": "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.",
  "id": "CVE-2026-45697",
  "modified": "2026-07-23T03:56:18.530158070Z",
  "published": "2026-05-29T19:01:49.220Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/verbb/formie/releases/tag/2.2.20"
    },
    {
      "type": "WEB",
      "url": "https://github.com/verbb/formie/releases/tag/3.1.24"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45697.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45697"
    },
    {
      "type": "FIX",
      "url": "https://github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Formie: Pre-authenticated server-side template injection in Hidden fields"
}